Running PHP scripts on CLI
Hi,
We are running PHP scripts on the command prompt but it does not display the output. When the same script is run thru a browser it works. Simple commands like echo, print work on command line, but mysql_connect, ifx_connect are not working. Please let me know the settings for PHP to work on command line. Thanks in advance. |
Have you looked at e.g. http://stackoverflow.com/questions/5...-connect-error? I just typed "run php script on command line mysql_connect" into duckduckgo...
Hope this helps, |
Quote:
|
Quote:
The packages to be installed are php5-cli and php5-mysql jlinkels |
I said duckduckgo because duckduckgo was actually what I typed it into, as opposed to google :) However, you're right, I should have taken the time to check it was first result in google as well (it was ;)). On a mostly unrelated note, I also kinda object to people using lmgtfy, because frankly I find that annoying...
|
All times are GMT -5. The time now is 10:42 AM. |