Page 1 of 1

Can't create new folder with mkdir()

Posted: Wed Sep 14, 2005 9:23 pm
by nbuu
<?php

if (mkdir("/var/www/html/catalogs/mynewfolder",0777)){
echo "created ok";
}else{
echo "can't created";
}

?>

The result is always "can't create", I also set permission of "catalogs" to 777

Please tell me what should I do to solve that problem?

For more info: I installed Fedora 3: Apache 2., PHP 4.3.9, Mysql 3.23.58

Thanks very much,
Nguyen Buu

Posted: Wed Sep 14, 2005 11:11 pm
by feyd
yar, I sees ya furgot to read de sticky things, yar.

Posted: Thu Sep 15, 2005 10:40 am
by pickle
feyd wrote:yar, I sees ya furgot to read de sticky things, yar.
~Burri convinced you eh?

Posted: Thu Sep 15, 2005 10:44 am
by shiznatix
its probably because you are not in the /var/www/html/catalogs/mynewfolder folder at the time. if the php file is in the catalogs folder then it would just be mkdir("/mynewfolder") usually. give that a try

oh and just use the php and code tags where need be, makes things a lot easier on us to read. don't listen to feyd he is cranky cause he got scurvy from his lady friend (if ya know what i mean :wink: )

Posted: Thu Sep 15, 2005 10:57 am
by Burrito
pickle wrote:~Burri convinced you eh?
arrrg...actually 't be th' other way around. I jus' jumped on th' band wagon...arrr