<?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
Can't create new folder with mkdir()
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
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
)
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