Nanu ???
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>: feof(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: fread(): supplied argument is not a valid stream resource in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
<br />
<b>Fatal error</b>: Maximum execution time of 150 seconds exceeded in <b>C:\IP-Symcon\scripts\EXTRACT_PICTURES.ips.php</b> on line <b>80</b><br />
6/8/2006 17:06:43.252 | DEBUG | VariableManager | Variable: DEVICE_ALARM (String), Value: ERROR|Kernel|Error Processing Message: 10020, Instance 17161, Message:Out of memory
6/8/2006 17:06:43.473 | DEBUG | ExecuteThread ID: 2436 | Executing Script: KERNEL_ALARM_MANAGING.ips.php ~ Sender: Variable: DEVICE_ALARM, Trigger: OnUpdate
6/8/2006 17:06:43.523 | ERROR | Kernel | Error Processing Message: 10020, Instance 17161, Message:Out of memory
Die Log-File ist 200Mb gross und voll mit immer derselben Zeile ! Es scheint eine Endlosschleife zu sein? Aber warum?
Hier ist das zuständige Skript, und wie könnte ich so eine Fehlermeldung abfangen damit das nicht mehr vorkommt?
<?
/*
*******************************
IP-SYMCON Event Scripting
*******************************
File : EXTRACT_PICTURES.ips.php
Trigger :
Interval :
*/
// The weather Channel
$remoteImage = "http://image.de.weather.com/web/maps/satellite/regions/europesat_720x486.jpg";
$remoteFile = fopen("$remoteImage",'rb');
$localImage = "C:/IP-Symcon/Web_Pictures/weather_today_01.jpg";
$localFile = fopen($localImage,'wb');
while (!feof($remoteFile))
{
$chunk = fread($remoteFile,1024);
fwrite($localFile,$chunk);
}
fclose($localFile);
fclose($remoteFile);
// German ZDF
// 1.
$remoteImage = "http://www.zdf.de/ZDFde/wetter/showpicture/0,2236,193,00.gif";
$remoteFile = fopen("$remoteImage",'rb');
$localImage = "C:/IP-Symcon/Web_Pictures/sat_europa.gif";
$localFile = fopen($localImage,'wb');
while (!feof($remoteFile))
{
$chunk = fread($remoteFile,1024);
fwrite($localFile,$chunk);
}
fclose($localFile);
fclose($remoteFile);
// 2.
$remoteImage = "http://www.zdf.de/ZDFde/wetter/showpicture/0,2236,313,00.jpg";
$remoteFile = fopen("$remoteImage",'rb');
$localImage = "C:/IP-Symcon/Web_Pictures/forecast.jpg";
$localFile = fopen($localImage,'wb');
while (!feof($remoteFile))
{
$chunk = fread($remoteFile,1024);
fwrite($localFile,$chunk);
}
fclose($localFile);
fclose($remoteFile);
// Rain Radar Europe
$remoteImage = "http://www.wetteronline.de/daten/radar/eurg/vie.gif";
$remoteFile = fopen("$remoteImage",'rb');
$localImage = "C:/IP-Symcon/Web_Pictures/rain_radar.gif";
$localFile = fopen($localImage,'wb');
while (!feof($remoteFile))
{
$chunk = fread($remoteFile,1024);
fwrite($localFile,$chunk);
}
fclose($localFile);
fclose($remoteFile);
//Sferics
$remoteImage = "http://217.160.75.104/wz/pics/sfanim.gif";
$remoteFile = fopen("$remoteImage",'rb');
$localImage = "C:/IP-Symcon/Web_Pictures/sferics.gif";
$localFile = fopen($localImage,'wb');
while (!feof($remoteFile))
{
$chunk = fread($remoteFile,1024);
fwrite($localFile,$chunk);
}
fclose($localFile);
fclose($remoteFile);
?>
vielen dank für jegliche Info
mfG Franz