Thread: PHP and Crontab
View Single Post
  #1  
Old April 8th, 2002, 10:58 PM
Zimbop Zimbop is offline
Registered User
 
Join Date: Aug 2001
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Zimbop is on a distinguished road
Post PHP and Crontab

I'm using PHP compiled by Marc Liyanage at http://www.entropy.ch/ (I think it's an Apache module). It works great in every respect, however, I would like to run .php files with cron and have tried using cronnix to do this but have had no luck.

I was using the shebang line #!/usr/bin/php which has worked on virtual web hosting accounts on linux in the past.

Now, there's no "php" in /usr/bin/php only "php-config" "phpextdist" "phpize" and "phptar".

So how do I execute "test.php". Is it possible with the apache module version of PHP or does it need to be the CGI version. And where is php, if in the terminal I go "whereis sendmail" I get "/usr/sbin/sendmail", but if I do "whereis php" I get nothing!

Regards

Zimbop
Reply With Quote