Re: [PHP-WIN] How to set GET and POST variables through CLI?

2007-08-24 Thread Steve Francisco
John Mertic wrote: If your homegrown server supports calling a CGI program to handle scripts, then you should be able to integrate PHP into it trivially. You may want to consult the internals list for more details of how this all works. Thanks for your help. I did ask on the internals list an

Re: [PHP-WIN] How to set GET and POST variables through CLI?

2007-08-23 Thread Steve Francisco
Thanks for your reply John, Having to add something to the top of my php to get the $_GET array isn't a great option for me. I want to be able run my php as it would be run from a web server. Actually I'd also like to integrate it into a homegrown Java based web server I have, and was going t

[PHP-WIN] How to set GET and POST variables through CLI?

2007-08-22 Thread Steve Francisco
Hi, I'd like to use the command line interface to test my php files before I put them live. However I can't figure out how to pass variables so the php program sees them as if they came in via an HTTP GET request. For example, if the url would be this on the server: http://some.server