I have the following code
<?PHP
$directory = "placas";
//Get each file and add its details to two arrays
$results = array();
$handler = opendir($directory);
while ($file = readdir($handler)) {
if ($file != '.' && $file != '..' && $file != "robots.txt" && $file != ".htaccess"){
$currentModified = filectime($directory."/".$file);
$file_names[] = $file;
$file_dates[] = $currentModified;
}
}
closedir($handler);
if(substr($file_dates[0],0, -2)==substr(time(),0, -2)){
echo "confere no BD se existe a placa ". $file_names[0];
}
echo "<meta http-equiv='refresh' content='2;url=identificar_placa.php'>";
?>
The variable "directory" is containing the "boards" folder, however, I want to modify it to a directory that is in another path, specifically in "C: \ xampp \ htdocs \ C: \ xampp \ htdocs \ boards "; and it did not work.