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 Link to comment https://forums.phpfreaks.com/topic/4575-parameter-to-a-script/ 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] Link to comment https://forums.phpfreaks.com/topic/4575-parameter-to-a-script/#findComment-15982 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.