Jump to content

[SOLVED] Folder Check


mcmuney

Recommended Posts

How would I modify the if statement below to check to see if the date folder exists in a specific directory and create it if it doesn't exist?

 

$date = date("m-d-y");
//$sql = mysql_query("SELECT * FROM images WHERE date = '$date'");
//$row = mysql_fetch_row($sql);
if ($row == NULL) {
mkdir("photos/$date", 0777);
}

Link to comment
https://forums.phpfreaks.com/topic/86367-solved-folder-check/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.