List Info

Thread: Why does Eclipse/PDT insist on injecting my project name in the Run As.. PHP Web Page URL?




Why does Eclipse/PDT insist on injecting my project name in the Run As.. PHP Web Page URL?
user name
2008-07-07 17:29:52
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!

Many thanks,
Matt
Re: Why does Eclipse/PDT insist on injecting my project name in the Run As.. PHP Web Page
user name
2008-07-07 21:57:40
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.

Nick

2008/7/7 Matt Farley < mattfarleyfamily.net">mattfarleyfamily.net>:
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

I9;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!

Many thanks,
Matt

_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: Why does Eclipse/PDT insist on injecting my project name in the Run As.. PHP Web Page
user name
2008-07-08 01:46:12
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?

Thanks,
Matt


2008/7/8 Nick Boldt < codeslaveca.ibm.com">codeslaveca.ibm.com>:
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.

Nick

2008/7/7 Matt Farley < mattfarleyfamily.net" target="_blank">mattfarleyfamily.net>:
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&#39;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!

Many thanks,
Matt

_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org" target="_blank">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev



_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


RE: Why does Eclipse/PDT insist on injecting my projectname in the Run As.. PHP Web Page U
country flaguser name
Israel
2008-07-08 01:56:43

Hi,

Using the launch configurations of the PHP Web Page you can specify the right path:

01C8E0E0.ECE18D40">

 

BTW – this is a classical question for the newsgroup where tons of PDT users are answering such kind of questions!

 

 


From: pdt-dev-bounceseclipse.org [mailto:pdt-dev-bounceseclipse.org] 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?

Thanks,
Matt

2008/7/8 Nick Boldt < codeslaveca.ibm.com">codeslaveca.ibm.com>:

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.

Nick

2008/7/7 Matt Farley < mattfarleyfamily.net" target="_blank">mattfarleyfamily.net>:

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&quot; 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!

Many thanks,
Matt

_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org" target="_blank">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev



_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

 

View Original Image
Re: Why does Eclipse/PDT insist on injecting my projectname in the Run As.. PHP Web Page U
user name
2008-07-08 07:26:45
Hi Roy,

I appreciate the detailed screenshot.

However that setting is applied on a page-by-page basis -- manual.

I'm looking for a similar setting that is applied globally to a project/workspace when set once.

I believe it's captured here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=236971&nbsp;

Hopefully that makes it in soon.

Regards,
Matt

2008/7/8 Roy Ganor < royzend.com">royzend.com&gt;:

Hi,

Using the launch configurations of the PHP Web Page you can specify the right path:

01C8E0E0.ECE18D40" width="840" height="502">

 

BTW – this is a classical question for the newsgroup where tons of PDT users are answering such kind of questions!

 

 


From: pdt-dev-bounceseclipse.org" target="_blank">pdt-dev-bounceseclipse.org [mailto: pdt-dev-bounceseclipse.org" target="_blank">pdt-dev-bounceseclipse.org] 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?

Thanks,
Matt

2008/7/8 Nick Boldt < codeslaveca.ibm.com" target="_blank">codeslaveca.ibm.com>:

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.

Nick

2008/7/7 Matt Farley < mattfarleyfamily.net" target="_blank">mattfarleyfamily.net>:

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&quot; the initial URL it prompts me with in the popup is: http://localhost/ProjectX/path/to/file.php

I9;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!

Many thanks,
Matt

_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org" target="_blank">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev



_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org" target="_blank">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

 


_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org">pdt-deveclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


View Original Image
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )