Hi
I am trying to run a PHP script from the crontab.
Cron actually executes the script, but....
Eventhough I added the CLI path to the start of the php file a test with
returns CGI
My file:
I have been told that #!/usr/local/bin/php is the correct path by my hosting provider....
What could be wrong????
JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
I am trying to run a PHP script from the crontab.
Cron actually executes the script, but....
Eventhough I added the CLI path to the start of the php file a test with
Code:
echo php_sapi_name()
My file:
Code:
#!/usr/local/bin/php
<?php
echo $sapi = php_sapi_name();
?>
I have been told that #!/usr/local/bin/php is the correct path by my hosting provider....
What could be wrong????
JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!