Hello to everyone who is reading this and thank you for taking your time to do so.
Okay my file is this.
<?php
$file="test.jpg";
clearstatcache();
$time=filemtime($file);
$CurTime=time();
$dif=$CurTime - $time;
if ($dif > 225)
{
mail("Webmaster <webmaster@matsukidesignsolutions.com>","The webcam is frozen",""
}
echo"document.write()";
?>
This tells my server to email me if my webcam freezes. If it refreshes 5 times at 45 seconds each(the 225) without changing the picture (test.jpg) then it emails me and tells me.
It works but the problem is that it emails me too early. I have no idea why. I messed with the time (225) and the symbols Greater than or less than. Nothing works.
Can someone help? I would greatly appreciate it.
Okay my file is this.
<?php
$file="test.jpg";
clearstatcache();
$time=filemtime($file);
$CurTime=time();
$dif=$CurTime - $time;
if ($dif > 225)
{
mail("Webmaster <webmaster@matsukidesignsolutions.com>","The webcam is frozen",""
}
echo"document.write()";
?>
This tells my server to email me if my webcam freezes. If it refreshes 5 times at 45 seconds each(the 225) without changing the picture (test.jpg) then it emails me and tells me.
It works but the problem is that it emails me too early. I have no idea why. I messed with the time (225) and the symbols Greater than or less than. Nothing works.
Can someone help? I would greatly appreciate it.