Jump to content

Archived

This topic is now archived and is closed to further replies.

alexis101

Parameter to a script

Recommended Posts

I need to execute a php script in a console. And i need to pass it a parameter. If it was a web page i know it would be something like
[code]
asd.php?parameter="asd"
[/code]
But this wont work in console.
Anyone know how to do this

Share this post


Link to post
Share on other sites
It should be sitting in the $argv global array. See here for more info:

[a href=\"http://us2.php.net/manual/en/features.commandline.php\" target=\"_blank\"]http://us2.php.net/manual/en/features.commandline.php[/a]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.