Please forgive me -- I have been poring over the online help sections and discussion forums for hours... all night, even! I've also been asking for help on StackOverflow. But for the life of me, I just can't wrap my head around the process of development in PHPStorm.
I know no one likes a loaded question, and so I was going to break this down into separate questions, but my head is just swirling from trying to a get a working grip on multiple subjects in PHPStorm:
1. I'm a bit overwhelmed on the notion of running PHP code you've just written vs. running a "Run Configuration", and why it always defaults to treating it as a script (and not a browsable web page, if you want)
2. I'm confused as to when/why "Deployment" comes into play and should be used in projects, as it seems critical to being able to use xdebug.
3. I have trouble working out how/when/why files are mapped here/there/locally/server-side/relative/absolute/etc. What methods do developers typically use in different scenarios (like using a locally installed server on their machine)?
I have PHPStorm 4. I have a local Apache server running on my machine. I have PHP 5.3 installed, with the Xdebug extension.
My goal is to be able to create a project, create a PHP file within that project, write some code, and then click "Run" or "Debug", and have that PHP file loaded up in an external browser automatically from the IE. I understand, however, that that process must be done with some different/extra steps... but how? Up until using PHPStorm, I was just saving the PHP file from Notepad++ into the actual physical directory of where it's stored in the server (wwwdocs), and then having to continuously refresh the web page manually in my browser.
In PHPStorm, I never have the option to "Open in browser" for any of the PHP files I create. I try to create a PHP Web Page run configuration, but I don't understand the "Start URL" setting -- does that mean that I have to literally write the full URL for where that specific PHP file is on the local Apache server? Do I have to do this for _every_ PHP file that I want to run/debug on my Apache server?
I'm hoping that there is some type of setup or defaults that I can do so that I can create a new project and have it configured or mapped to be able to set it up correctly, so that I don't have to keep editing server/file mappings and locations for every project, just to be able to debug a PHP file on a browser.
Is there any hope, or am I out of luck in that department? :)