Problem with PHP in Drewamweaver CS3

Submitted by pothick on Thu, 07/03/2008 - 01:24.
Hi All,
I have writen a small php script in Notepad++ (it reads dynamic parameter using the GET). It works fine when I tested it in the server. However, when I copied the code in DW it is not echoing the output when I preview it in the browser (but is working fine if I upload the file in the server). Is there a way to test a script from DW without uploading it to the server? Do I need to configure php/dw? (I was able to echo a varible defined within the page but not the variable where I am storing the keyword using GET function
Can some one help please.
Thanks.

xampp
"Is there a way to test a script from DW without uploading it to the server? Do I need to configure php/dw?"
I think there's something called Live View (or similar) but the best way is to set up a local testing server then address the file locally using http://localhost/filename.php
On my Windows machine, I use xampp. http://www.apachefriends.org/en/xampp.html
Thanks and a followup quesion
Thanks for the help.
However, I still have some followup questions. In your computer do you use local host or virtual host? Also, have you used the PHP GET function on a document relative url with dynamic parameter to get your tracking variable values? The reason I am asking is I am using a local host and documetet relative link. I can get php tp work for most of the cases except url tracking. Therefore, I am wondering do I need to use virtual host and use a complete url like "http://mywebsite.com/index.php?sr=ggl"?
Any advise will be appreciated.
Thanks again
Claudia
"However, I still have some
"However, I still have some followup questions. In your computer do you use local host or virtual host?"
In my computer I use localhost.
"Also, have you used the PHP GET function on a document relative url with dynamic parameter to get your tracking variable values?"
I'm afraid I haven't, no.
"The reason I am asking is I am using a local host and documetet relative link. I can get php tp work for most of the cases except url tracking. Therefore, I am wondering do I need to use virtual host and use a complete url like "http://mywebsite.com/index.php?sr=ggl"?"
It depends on how you are tracking the URLs. I think using a live server environment would be preferable in this situation. Why do you need this script to work locally?