Is there a way to simulate "POST mode user input" while running PHP
from the command line or in interactive mode? For example with
python, you can simulate the effects of post mode with the following
two lines
export REQUEST_METHOD=POST
echo -n 'x=y&z=t' | python myscript.py
I have tried the following, but it does not work.
export REQUEST_METHOD=POST
echo -n 'x=y&z=t' | php myscript.php
Is there I was to get a similar effect with PHP?
BACKGROUND INFO:
PHP Version: 4.3.0
OS: Linux
I compiled PHP myself because I needed the MySQL extensions. The only
options I set were "--prefix=/usr/local/bin" and "--with-mysql".
After installing there was an executable php in the /usr/local/bin/,
After reading the configure help I assume that this is the CGI/Command
line version of php. I have tested using the command line, I am able
to access my MySQL server.