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

2007-08-22 Thread John Mertic
Any parameters passed from the command line go to the $argv array, but you cannot specify the key ( they are put in the order in which they appear ). So calling: php.exe foo.php "foo1" "foo2" would call foo.php and $argv would have: 0 => 'foo.php' 1 => 'foo1' 2 => 'foo2' I suppose you could hav

[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

Re: [PHP-WIN] File creation problem (HTTP wrapper does not support writeable connections.)

2007-08-22 Thread Stut
vikas batra wrote: i have to create a xml file with some content in it in my site at one folder, when i try to create file with fopen command then it says that "HTTP wrapper does not support writeable connections. ", bcs i gave there absolute path of file , then i tried with relative path