Back with problem - CRON !

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Back with problem - CRON !

Post by jito »

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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Back with problem - CRON !

Post by pickle »

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.
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Re: Back with problem - CRON !

Post by jito »

solved! Thanks for your time.
Post Reply