Jump to content



  • Please log in to reply
1 reply to this topic

#1 neugi

  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 11 July 2006 - 10:45 AM


i've got a script that writes a file to the server. if i run it from the webserver it works okay and writes the file to the server.

but if i run it as an cronjob with this command "php -f /var/www/tmi/output.php" it won't create a file on the server.

do i have to use a other command that the php script writes the file to the server?


#2 willfitch

  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts
  • LocationNew Hope, PA

Posted 20 July 2006 - 02:23 PM

Remove the -f and just use php /var/www/tmi/output.php

Also, keep in mind where this file is being executed.
Zend Certified Engineer (ZEND001989)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users