alexis101 Posted March 10, 2006 Share Posted March 10, 2006 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 Quote Link to comment Share on other sites More sharing options...
wickning1 Posted March 10, 2006 Share Posted March 10, 2006 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.