tibberous Posted April 9, 2009 Share Posted April 9, 2009 I run php.exe from the command line (version 5.2). It lets me type, seemingly indefinitely. Is this used for something? Like, can I type code and then somehow say I'm finished and have the code run? Link to comment https://forums.phpfreaks.com/topic/153339-why-does-php-let-me-type-if-i-run-it-from-the-command-line/ Share on other sites More sharing options...
Maq Posted April 9, 2009 Share Posted April 9, 2009 What exactly are you trying to do? Link to comment https://forums.phpfreaks.com/topic/153339-why-does-php-let-me-type-if-i-run-it-from-the-command-line/#findComment-805599 Share on other sites More sharing options...
tibberous Posted April 9, 2009 Author Share Posted April 9, 2009 Well, I was trying to use the PHP5 cli like the PHP4 cli, where you just typed "php x.php" I guess they changed it so you have to put "php -f x.php" But then what does not using the -f parameter do? Just type senselessly and have to reopen command prompt? Link to comment https://forums.phpfreaks.com/topic/153339-why-does-php-let-me-type-if-i-run-it-from-the-command-line/#findComment-805605 Share on other sites More sharing options...
Maq Posted April 9, 2009 Share Posted April 9, 2009 Hmm, not sure. You probably already read this but there's a list of command line parameters that explains what they do in the manual, Using PHP from the Command Line -f Parse and execute . Hope this helps. Link to comment https://forums.phpfreaks.com/topic/153339-why-does-php-let-me-type-if-i-run-it-from-the-command-line/#findComment-805613 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.