View Single Post
  #1 (permalink)  
Old 26-09-2008
Bobafart Bobafart is offline
Hackingart Member
 
Join Date: Sep 2008
Posts: 22
Default Using PHP script with crontab. How to run?

Hi, I am trying to use a PHP script as a test for a cron job.

My crontab is 1 line:

30 * * * * /home/www/inc/crontab.php

if I test the file through the browser (ie. http://www.tjsc.com.vn/inc/crontab.php), the PHP script works -- so there is nothing wrong with the PHP script itself or the path.

I aked my hosting admin for assistance and the error he keeps getting is:

/bin/sh: line 1: /home/www/inc/crontab.php: Permission denied

What permission do I need to set to get it to work???
Reply With Quote