techiefreak05 Posted May 28, 2007 Share Posted May 28, 2007 I am running WAMP Server on my computer, and I need to run a script with the PHP Command Line Interface... I've been doing some research and so I tried entering the folowing command into the php command window: php -h, that is supposed to show a list of commands... nut it does nothing... nothing I try works... any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/ Share on other sites More sharing options...
StormTheGates Posted May 28, 2007 Share Posted May 28, 2007 Try php -help ? Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263028 Share on other sites More sharing options...
techiefreak05 Posted May 28, 2007 Author Share Posted May 28, 2007 *tries* ... Nope, nothing, the cursor just goes to the next line down after I hit Enter... Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263029 Share on other sites More sharing options...
warewolfe Posted May 28, 2007 Share Posted May 28, 2007 try php --help php -i or php --rf phpinfo Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263035 Share on other sites More sharing options...
techiefreak05 Posted May 28, 2007 Author Share Posted May 28, 2007 Not a thing... with any of those commands...no errors, no nothing.. I'm getting no output what so ever from the commands I'm trying... Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263038 Share on other sites More sharing options...
siwelis Posted May 28, 2007 Share Posted May 28, 2007 Maybe this page will help... The first page isn't in English, but the command list is http://forum.php.pl/lofiversion/index.php/t38940.html OR http://aspn.activestate.com/ASPN/docs/PHP/commandline.html <b>And of course</b>... A WAMP subforum (child-forum) on phpfreaks. http://www.phpfreaks.com/forums/index.php/board,56.0.html Hope that helps! Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263097 Share on other sites More sharing options...
trq Posted May 28, 2007 Share Posted May 28, 2007 Sounds like the php cli isn't installed with WAMP.... either that or its simply not in your PATH. Ive no idea how to set the PATH variable in windows, but the first thing I would do would be to look for the actual php.exe. Once (and if) you find it, open a terminal within that same directory and try... php.exe -h once again. If that works... you will need to google on how to add programs to the PATH variable in windows. Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263146 Share on other sites More sharing options...
wildteen88 Posted May 28, 2007 Share Posted May 28, 2007 try this. Go to start > Run > type in cmd > Enter Now type the following command: cd C:\wamp\php\ Press enter. This will move the terminal from the default folder (C:\Documents and Settings\<USER>\) to the where PHP is installed to. Which by default is C:/wamp/php when you install WAMP. The terminal should now read this: C:\wamp\php> Now try the PHP help command again: php -h Does that work? Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263156 Share on other sites More sharing options...
techiefreak05 Posted May 28, 2007 Author Share Posted May 28, 2007 Thanks for the great help! wildteen, It worked! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/53233-solved-php-command-line-phpexe-help/#findComment-263295 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.