neugi Posted July 11, 2006 Share Posted July 11, 2006 Hi,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?best Quote Link to comment https://forums.phpfreaks.com/topic/14278-cronjob/ Share on other sites More sharing options...
willfitch Posted July 20, 2006 Share Posted July 20, 2006 Remove the -f and just use php /var/www/tmi/output.phpAlso, keep in mind where this file is being executed. Quote Link to comment https://forums.phpfreaks.com/topic/14278-cronjob/#findComment-61026 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.