PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1847
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
argument passing problem Posted by softman on 25 May 2004 at 9:39 AM
Hi!

I'v downloaded the CGI version of php for Windows, It runs on a Win XP. If I want to pass a parameter, like "href=myphp.php?par=mydata" it fails, and myphp does not recieve the variable $par. If I upload it to my webpage provider, where a Linux server runs, all works fine. What did I forgot to setup? Any suggestions would help, cos' I would like to test my app on my homecomputer before I upload it.

Thanks
Softman

Report
Re: argument passing problem Posted by Manning on 25 May 2004 at 6:34 PM
: I'v downloaded the CGI version of php for Windows, It runs on a Win XP. If I want to pass a parameter, like "href=myphp.php?par=mydata" it fails, and myphp does not recieve the variable $par. If I upload it to my webpage provider, where a Linux server runs, all works fine. What did I forgot to setup? Any suggestions would help, cos' I would like to test my app on my homecomputer before I upload it.


What kind of setup do you have for testing locally? You can't just install PHP alone, you'll also need a webserver to serve the pages. Depending on what version of Windows you have, it may come with PWS or IIS. If those aren't an option, Apache (www.apache.org) is a favourite, but if you just want something simple I'd recomment Xitami (www.xitami.com)
Report
Re: argument passing problem Posted by softman on 25 May 2004 at 10:54 PM
: : I'v downloaded the CGI version of php for Windows, It runs on a Win XP. If I want to pass a parameter, like "href=myphp.php?par=mydata" it fails, and myphp does not recieve the variable $par. If I upload it to my webpage provider, where a Linux server runs, all works fine. What did I forgot to setup? Any suggestions would help, cos' I would like to test my app on my homecomputer before I upload it.
:
:
: What kind of setup do you have for testing locally? You can't just install PHP alone, you'll also need a webserver to serve the pages. Depending on what version of Windows you have, it may come with PWS or IIS. If those aren't an option, Apache (www.apache.org) is a favourite, but if you just want something simple I'd recomment Xitami (www.xitami.com)
:

Thank you!

I use IIS. Since I'v solved the problem. I use $HTTP_GET_VARS instead of $HTTP_POST_VARS, and it works fine. It was my mistake!

Thanks.
Softman.




 

Recent Jobs