Jump to content

Why does PHP let me type if I run it from the command line?


tibberous

Recommended Posts

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?

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.

 

 

Archived

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

×
×
  • Create New...

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.