Firstly I'm a new user and currently testing out the 30 day trial. So far I am really liking what I see, but I have one issue that is perplexing me and I need a little help!
Also, before I continue can I point out I have searched these forums for over an hour in the quest for my answer, and whilst I came tantalizingly close, the exact problem I have does not appear to be answered!
I also completely understand (I hope) the feature of marking folders as RESOURCE ROOTS etc.
My issue is that with my project set up, any time I try and open a file or script in my project with the OPEN IN BROWSER option, a spurious extra "www" appears in my URL in the browser causing an obvious 404 error because I can't seem to tell phpStorm that my www subfolder is my actual webroot folder like I could with netbeans.
Eg, instead of phpStorm opening:
http://www.testproject.com/scripts/test.php it tries to open:
Like so many other people here, I have a project that looks like this on my windows machine: (Taken from http://devnet.jetbrains.net/message/5279088#5279088)
\app -- your application code
\library -- 3rd party libraries
\www-- your web root
\media -- writable, your product images etc
\var -- temp/writable folders
I have marked my www as a RESOURCE ROOT. To help with explaining how I have set things up, here are some screenshots.
I have set up the deployment as follows (I've replaced all my server names with "testserver"):
Connection: Image 1
The ftp connection works fine, the web server root URL opens correctly when I press OPEN. When phpStorm logs into my ftp server, it arrives at the / (root) folder. My www directory is directly under root. ie /www/<my html and php files>
Mappings: Image 2
The local path is the top folder of my project directory. Deployment path is the same as my ftp root folder as that is where the system starts once it logs in. Web path is also / because if I add anything else here I get http://www.testserver.com/xyz which i definately don't want.
Directories: Image 3
I've set my WWW folder to Resource ROOT, but that doesn't seem to help me in the problem I have (although it does help for autocomplete).
Demo of problem: Image 4
As you can see, in this case I've chosen a file called /www/cron/dilbert.php and tried to open it using the open in browser command. (Image 5)
My browser opens and in the URL I see:
What do I have to do to make this open with:
It seems so simply yet I am going mad trying to fix this! Many thanks if you can help.
This threads were close but didn't seen to answer my questions:
Message was edited by: Jon Wilson