I want to create a PHP project using existing source in Netbeans. But when I try to give path of my existing project inside Applications/XAMPP/htdocs/ProjectFolder, the Applications folder doesn't showing any subfolders. I have attached image of this.
As you can see there is no subfolder inside Applications folder. All other Folders for eg. Desktop, Documents showing its subfolders.
I am using netbeans version 8.0.2 and Mac OS 10.10.2
My Applications and XAMPP folders permission is as follows
I have tried with this solution but no help.
What I need to change the configuration to get the subfolders of Applications?
I was looking in wrong Applications folder where XAMPP is installed. But actually all apps are installing inside root's Application folder.
After going in root's folder Applications folder showing all inner subfolders.
Please check this out :
Importing Existing Local Source Files into a Project
In the Projects area, choose PHP Application with Existing Sources
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 folder from where you want
to import the source files.
Note: If you are going to run the project on a local web server, do not forget to specify copying the source files to it.
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.
For detail information please read this.
Related
I have been using Eclipse Kepler along with PDT tools on local system to manage PHP projects and its turned out to be a better choice for me then the other editors around. Only problem I've found in this environment is that content assist is only available when you open a file residing in the workspace.
Now my problem, I am assigned to work on a PHP Project which is on another system on the local LAN network. Is there any way I can add that project folder to eclipse? so that I can directly edit and save the files on the remote system?
Things I can't look into for various reasons
Using a version control system
Copy source files to local system work
on them and then upload it (kinda have to add the remote files to the
local eclipse project).
Do any modifications on the target system for my convinence eg. Adding an FTP server.
Thanks
I managed to get what I want by creating what you call a Symbolic Link in c:\wamp\www (using WAMP) folder which is also my eclipse workspace, for the network shared project I wanted to import into Eclipse. To do this open an elevated command prompt and run this command
mklink /d projectname \\network_shared_folder
/d option creates a directory symbolic link. Now, the network project will be available as a local project on the web root which can be easily imported into Eclipse (or any other IDE)
Hope this comes in handy for someone who stumbles upon this problem. Now I can get content assist for any file in the project.
Thanks.
In the project explorer if not exist create a new project then:
1) right-click the project and select New > Folder
2) Specify a name for the folder
3) click on Advanced
4) Check Link to alternate location (Linked Folder)
5) Enter a file system path, or click Browse to select a folder in the file system.
6) Click Finish
Check here for more Creating Linked Resources on Eclipse
After hours of searching, I share the solution finally found: symbolic links are not usable if the project is managed via git.
Another solution is to use the fileSync plug-in (http://marketplace.eclipse.org/content/filesync) to automatically copy folders from the source project to user projects.
I have been developing a PHP project solely in Dreamweaver. After determining that Netbeans will make my life easier, I installed Netbeans 7.2 for PHP.
I followed the project setup guide, yet I am having issues with the project folders. I can edit and save source files, but how do I update the files on the localhost?
Specifically, I have the project source files located on our work drive, which I can use as a regular hard drive. I even have a site file for this project in Dreamweaver, with the source folder, the local folder, and the remote folder profiles all set up and functioning well.
Do I need to change how I store the project files? My Netbeans project properties are as follows:
Sources
-Project Folder: D:\work\cms\current
-Sourec Folder: D:\work\cms\current
-Test Folder:
Run Configuration
-Configuration: <default>
-Run As: Local Web Site (running on local web server)
-Project URL: http://localhost/cms/current/
-Index File: index.php
And I see no other relevant settings, but if you ask about any I will update my question.
When I make a change, I save and select Run. The page loads as expected, but the changes are not there, the localhost copy did not get updated. How do I resolve this?
You could install an FTP server e.g filezilla server and in the project "run configuration" change to remote web server, then specify localhost and the ftp details.
Or create a script to copy over the project e.g .bat or .sh depending on OS.
Or change your project location to be inside the localhost web directory and just use it in there.
I had the same issue, I gave in and now have apache pointing to my project folders on my development machine.
How to move my htdocs folder to dropbox and call from there?
Me and my friend are on remote location and many times we work on same php projects.
We are on Windows and we use XAMPP for PHP development.
At both systems XAMPP is installed on C:/xamppp/
Is it possible to only move htdocs folder to my dropbox folder and use it from there. Then I can share that folder with my friends so he can also use the same htdocs folder in his PC to develop and test.?
In both cases you probably only need to set the paths correctly in each of your Apache configurations.
For example, just create your 'shared_htdocs' folder in Dropbox, share that with your friend, then in your Apache configuration in XAMPP where you have the site (vhost?) defined you need to point to that 'shared_htdocs' folder within Dropbox.
As long as all the code inside is relative and doesn't even need full pathing you should be good.
I've been told by many tutorials (including the official wordpress tutorials) that I need to place all the files (in the wordpress folder) into the htdocs folder (without a sub-directory).
I'm using MAMP for my PHP environment and Dreamweaver CS5 to build the websites. The problem that I am having is that I want to create a new project in Dreamweaver that is not using wordpress, but because all those wordpress files are in the htdocs without a sub-directory, it is giving me all sorts of warnings that issues could occur if I place a directory for my new project in the htdocs folder along side all those other files.
I've tried putting all the wordpress files into a folder called "wordpress" under htdocs, but that breaks it and I've been told not to do that but not why I shouldn't do that.
How can I organize my htdocs folder so I can have more than one project present in that directory?
I would appreciate any help on this.
Thanks!
In local machine, you can be well sure of yourself that you need to organize each project of yours in a folder in the "htdocs" directory. This is of utmost importance to keep all the projects nicely so that you can later on reference all your projects easily.
When "tutorials are saying that you need to place all the files (in the WordPress folder) into the htdocs folder (without a sub-directory)", they mostly mean about the live server & not about the development server.
Also please check the ".htaccess" file of the root directory of each project, for the "Site URL" or the "Rewrite Base", when you are configuring multiple projects in the "htdocs" folder, so that each of the projects run smoothly. And you should also check that each project is running smoothly, which have been kept in the "htdocs" folder.
Hope it helps.
I have been using Dreamweaver for my web development and would like to try out eclipse. I would like to keep the source files where they are now. What do I need to set for my workspace and then how do I set it to look at my existing files?
You'll want to set up a workspace in the parent directory of the folder containing that project. Then, you'll create a new PHP project in Eclipse with the same name as the folder containing that project. That should get you going!
For example say you have a folder called Development. Inside that you have a folder called MyProject which contains all the subdirectories and code for your PHP project. On startup you'll select Development for your workspace and then create a PHP project called MyProject.
Eclipse PDT:
1: New -> Local PHP Project. Create it wherever you want (e.g your workspace).
2: Import -> File System. Select the root of your source code.
3: Click Advanced -> Create Links.
Now all source files will be edited in their current location.
Have you setup Eclipse for PHP Developers?
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-php-galileo-SR2-win32.zip
As far as I remember, it leaves the source files intact.