Yes, still the same problem it didnt find any image in the folders, so there is some problem in the path to the files, as I said, it could be leading zeros or the name of the file is a bit different. You could add an echo there that would show you the image it is looking for
$images = array();
for($i=0;$i<24;$i++){
for($j=0;$j<60;$j++){
echo "./AMC000X5_3R286G/".date("Y-m-d")."/001/jpg/".$i."/".$j."/01[R][0@0][0].jpg<br>";
if(file_exists("./AMC000X5_3R286G/".date("Y-m-d")."/001/jpg/".$i."/".$j."/01[R][0@0][0].jpg")){
$images[] = "./AMC000X5_3R286G/".date("Y-m-d")."/001/jpg/".$i."/".$j."/01[R][0@0][0].jpg";
}
}
}
Bad news. The file name has changed so I changed it in the script 02[R][0@0][0].jpg So the file name will change. If there was a way to just grab the newest jpg though...
This what I get:
./AMC000X5_3R286G/2017-11-13/001/jpg/0/0/02[R][0@0][0].jpg
./AMC000X5_3R286G/2017-11-13/001/jpg/0/1/02[R][0@0][0].jpg
./AMC000X5_3R286G/2017-11-13/001/jpg/0/2/02[R][0@0][0].jpg
./AMC000X5_3R286G/2017-11-13/001/jpg/0/3/02[R][0@0][0].jpg
Etc.
I changed the script to reflect the filename change and I still get this error.
Warning: file_get_contents(): Filename cannot be empty in /home/content/45/3170445/html/krb/wp-content/uploads/webcam/jach.php on line 12
I really appreciate all of your help Jachym but maybe this is getting to be a bit ridiculous.
](https://www.wxforum.net/Smileys/default/eusa_wall.gif)