Apache NetBeans 12.5
- Setting Up a PHP Project
- Getting Ready
- To set up a PHP project:
- Specifying the Project Name and Location of the Source Files
- Project without Previously Developed Source Files
- Importing Existing Local Source Files into a Project
- Importing Existing Remote Source Files into a Project
- Specifying the Default Run Configuration of the New Project
- Local Web Site
- Remote Web Site
- Customizing the Project Setup
- Run Configuration
- PHP Include Path
- To define global IDE formatting:
- To define project-specific formatting:
Project without Previously Developed Source Files
- In the Projects area, choose PHP Application and click Next. The New PHP Project > Name and Location panel opens.
- In the Project Name text field, enter the name of the project.
- In the Sources Folder field, specify the subfolder of your document root where you want to store your source files.
The document root is the folder where the local web server looks for files to open in the browser. The document root is specified in the web server configuration file. After installation, the New Project wizard locates the document root and by default specifies the following path: <Document Root>\<New PHP Project> .
A copy of the source files must be kept in a subfolder of the document root. However, you can have your Sources Folder in a different location than the document root and copy source files from this location to the document root. See Specifying the Run Configuration.
- From the Default Encoding dropdown list, choose the default encoding for your project.
- If you want to store NetBeans metadata in a different location than your source files, select “Put NetBeans metadata into a separate directory.” For example, you might want to store your sources in your document root but the NetBeans metadata in your NetBeansProjects directory.
- Click Next. The Run Configuration panel opens.