Webcam
Hier gehts direkt zur Webcam >> Klick mich <<
[insert_php]
$folder = „cam/“;
$dir = opendir($folder);
$allowed = array(‚jpg‘);
while ($file = readdir($dir))
{
if (in_array(substr($file, -3), $allowed))
{
$filemtime=filemtime(„$folder/$file“);
$files[] = „$filemtime||$file“;
}
}
closedir($dir);
$fcount = count($files);
if ($fcount!= 0)
{
rsort($files);
for($i=0; $i<1; $i++)
{
$lastimage = explode(‚||‘, $files[$i]);
$show_file = $folder.$lastimage[1];
$aktuell = „aktuell.jpg“;
$newfile = $folder.$aktuell;
/*
echo $show_file;
echo $newfile;
*/
$imagedata=@getimagesize(„$folder/$lastimage“);
/*
echo“\n“;
*/
copy($show_file, $newfile);
}
}
[/insert_php]
Bitte die Taste F5 zum aktualisieren drücken