NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
can I use php.exe to type in php commands


Joined: 04 Nov 2009
Posts: 37
Reply with quote
c:\program files (x86)\nusphere\phped\


can I use php.exe to type in php commands

because I can open php.exe and type but I do not get responses when I type a command and <enter>


examples of typed commands
php -v

Is there php-cli, because I cannot get php command line via php.exe
View user's profileFind all posts by jerseyguy0Send private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
You need to do some research on how PHP works. Plenty of info in google for that, a lot of it at http://www.php.net

If you start PHP directly, you will not get prompts or anything.

Type php -? to get some help and you can do things like:

Code:
php -r "phpinfo();"


to run PHP statements.

Or if you have a script file:

Code:
php -f myfile.php


Both php-cgi and php run the same PHP, they are just designed to interface differently to other frameworks. You can use just php.exe to run your commands. But don't expect to run php directly and get a command prompt, because it doesn't do that.
View user's profileFind all posts by plugnplaySend private message
can I use php.exe to type in php commands
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic