php scripts run at command prompt
Posted: Fri Jan 24, 2003 9:33 am
I want to run php at command prompt in linux like
#>php script.php
But php is not configured like the apache modules which run fine in a browser. What can I do to make php in shell mode work the same as one in the browser. We need it to run applications in cron jobs. If I run
#>php info.php
where info.php is
<? phpinfo(); ?> I get diffrent outcome than from the same file in a browser. How can I get them to work the same
#>php script.php
But php is not configured like the apache modules which run fine in a browser. What can I do to make php in shell mode work the same as one in the browser. We need it to run applications in cron jobs. If I run
#>php info.php
where info.php is
<? phpinfo(); ?> I get diffrent outcome than from the same file in a browser. How can I get them to work the same