For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > Passing $_POST variables to command line php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Passing $_POST variables to command line php
Infiliset

2006-05-16, 7:00 pm

Hi all! I'm trying to test some php script using the command line php.exe.
Is there any way to pass the $_POST variables? I know how to pass the $_GET
variables, but I don't know how to do this for the $_POST ones. Thank you
all!


Matthew


Rich

2006-05-20, 6:57 pm

Matthew,

Recode your pages with $_REQUEST instead of $_GET/$_POST so that you can use
it with $_GET variables or $_POST variables without needing to change
anything.

You can't POST to a file executed via command line.

Cheers,.

"Infiliset" <infilisetRIMUOVI@gmail.com> wrote in message
news:446a13f0$0$29097$5fc30a8@news.tiscali.it...
> Hi all! I'm trying to test some php script using the command line php.exe.
> Is there any way to pass the $_POST variables? I know how to pass the
> $_GET variables, but I don't know how to do this for the $_POST ones.
> Thank you all!
>
>
> Matthew
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com