PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5011

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

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.