View Single Post
Old 04-21-2003, 09:44 AM   #1 (permalink)
Antagony
Registered User
 
Antagony's Avatar
 
Join Date: Mar 2003
Posts: 31
Antagony is on a distinguished road
Send a message via ICQ to Antagony
PHP Command-Line Arguments?

I use PHP in a linux environment, and as such, I have use of the command-line interface, e.g. "# php crap.php"

I was wondering if it was possible to pass command-line arguments to a php script, e.g. "# php crap.php http://www.codenewbie.com"

Is that possible? If so, what environment variables do I need to look at?

Thanks.
Antagony is offline   Reply With Quote