I don’t understand what could be causing this not to work…every other sample code I have found online has pretty much matched this. I am using an apache server running on localhost. I don’t know if I’m specifying the wrong location somehow or what…any ideas?
[php]if(!is_dir("/Uploads")){
mkdir("/Uploads");
if(!is_dir("Uploads")){
echo "<script>alert('dir not created')</script>";
die();
}
else{
echo "<script>alert('dir created')</script>";
} [/php]