Hi All,
I am running a script using cron, that creates a directory, if doesn't exists. That script is running fine from CLI and browsers.
But while running it from cron i always get the error :
Warning: mkdir(): No such file or directory in /usr/www/users/*****/*****/genera
l.php on line 91
Warning: chmod(): No such file or directory in /usr/www/users/*****/*****/genera
l.php on line 93
I tried with absolute and relative path to that directory.
Please help me before i get bald.
Thanks.
Back with problem - CRON !
Moderator: General Moderators
Re: Back with problem - CRON !
Usually mkdir() and chmod() have the path to the directory/file you're affecting right in the error message. Since it's not there in your error messages, your code probably isn't determining the directory path properly.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Back with problem - CRON !
solved! Thanks for your time.