$ad_title = $_POST['title'];
$ad_content = $_POST['content-ads'];
$ad_region = $_POST['region'];
if (!is_dir("uploads/".$ad_region)) {
// dir doesn't exist, make it
mkdir("uploads/".$ad_region);
echo "directory created!";
}
else {
echo "directory already exist!";
}
I am making a site and I am developing it in localhost for now. My save.php file and the uploads folders where the codes above is saved in the local directory
localhost/system/modules/new/
When I relocated the save.php file and the uploads folder in the directory
localhost/system/
all seems to be working now. But I want it to work in the
localhost/system/modules/new/
directory for better organization. Any help on how to make it work?