使用netbeans在PHP中创建网页

I am using netbeans to create a php project with XAMPP using linux but i am not able to set the path to my File System for htdocs folder.How can I do that because there is no File System option when I browse.

I recommend using NetBeans' built in feature to copy your sources to the htdocs upon save - this way you have a "web-ready" copy of your project files running locally in xampp. This also gives you a little flexibility if you are syncing/automatic backup (so you can backup your sources without having to keep a copy of your whole web directory).

  1. Open your project in NetBeans
  2. File -> Project Properties
  3. Choose "Sources" as the category
  4. Check: "Copy files from Sources Folder to another location
  5. Copy to Folder: (make this your htdocs directory)
  6. Check: "Copy files on project open"
  7. Click "OK"