Avatar of iilv
iilv

asked on 

cannot write to a text file using cron job

Hi,

I have a cron job which executes a php script .This php script writes some contents to a file.
This php script does not write anything to the file using cron job.
But when i execute it through command line through this command
 /var/www/twitter# php5 event.php it writes to the file

And for instance i changed the script . Now i insert into a table then this script works through cron job. What is the issue?

I have given 777 permission to text file as well as php script

Please guide.

Thanks
Linux

Avatar of undefined
Last Comment
iilv

8/22/2022 - Mon