"; if (file_exists($dir)) { echo "Directory already exists.
"; } else { if (mkdir($dir, 0755, true)) { echo "SUCCESS: The directory was created.
"; } else { echo "ERROR: The directory could not be created. Check server logs and permissions.
"; } } echo "Script finished."; ?>