|Re: [pdt-dev] Why does Eclipse/PDT insist on injecting my projectname in the Run As.. PHP Web Page URL?|
Using the launch configurations of the PHP Web Page you can specify the right path:
BTW – this is a classical question for the newsgroup where tons of PDT users are answering such kind of questions!
From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Matt Farley
Sent: Tuesday, July 08, 2008 9:46 AM
To: PDT Developers
Subject: Re: [pdt-dev] Why does Eclipse/PDT insist on injecting my projectname in the Run As.. PHP Web Page URL?
I thought about that as well, but I'd prefer to address it at the root -- Eclipse/PDT, as opposed to aliasing Apache for every project I start.
I can't be the only one who's ran into this? Is there no other way?
2008/7/8 Nick Boldt <codeslave@xxxxxxxxxx>:
If you're using Apache2 as your test server (or most likely all php-enabled http servers), you can alias/virtualhost http://localhost/ProjectX/ as http://locahost/ with some minor adjustments to your config files. Details on request.
2008/7/7 Matt Farley <matt@xxxxxxxxxxxxxxxx>:
Just started using PDT and for the life of me I can't figure out how to get PDT to stop injecting the project name in the Debug/Run "PHP Web Page" URL.
In my example, my site exists at: http://localhost/
And my project is named: "ProjectX"
So when I'm editing a PHP page and I want to run/debug as "PHP Web Page" the initial URL it prompts me with in the popup is: http://localhost/ProjectX/path/to/file.php
I've been pulling my hair out trying to figure out how to get it to default to:
http://localhost/path/to/file.php (I've been having to manually remove the /ProjectX/ from each URL.
Any help is greatly appreciated!
pdt-dev mailing list