Page 1 of 1

PHP as a Server Side Scripting ?

Posted: Mon Jun 02, 2003 8:34 am
by caseymanus
I often use php as a server side scripting language from the command line, the question I have now is how can I pass a parameter via the command line

I tried doing it this way

php.exe myscript.php?input=testxxx

but input is not part of $_REQUEST, like it would be if you called this as part of a webpage. Does anyone have any clue as to how I could pass in
input parameters when executing a script via the command line?


Thanks,

Casey

Posted: Mon Jun 02, 2003 10:05 am
by twigletmac
Please don't cross-post (I have deleted the additional post).

Mac

Posted: Mon Jun 02, 2003 10:06 am
by volka

Posted: Mon Jun 02, 2003 10:27 am
by caseymanus
Thanks for the link, and about cross posting, I realized that this was probably a more advanced question than was usual fair in the basic forum, so I wanted to move it to advanced, hence the cross-post. Is there anyway to move a post?

Posted: Mon Jun 02, 2003 10:35 am
by twigletmac
If you feel you've posted in the wrong place and would like a thread moved you can either PM me (or another moderator) and ask. If I think a post is not suitable for the current forum I'll move it.

The PHP - Advanced forum however, would not be the place to post this question as the Advanced forum is for Advanced theory and the Normal forum is for 'how to' type questions. This is a 'how to' question. It is always important that, before posting in a forum, you read it's description to be sure it suits the post you are about to make.

Mac