Hallo,
met dit stukje script:
<?
$lastslash = strrpos($HTTP_SERVER_VARS[SCRIPT_FILENAME],"/");
$root = substr($HTTP_SERVER_VARS[SCRIPT_FILENAME],0,$lastslash+1);
$fp = popen("$root/system/./jhead -se '$file' 2>&1", "r");
while (!feof($fp)) {
$buf .= fread($fp, 1024);
}
echo $buf;
if(!strstr($buf,"denied"))
{
$tmp = explode("\n",$buf);
for($i = 0; $i <= count($tmp); $i++)
{
if($tmp[$i] != "")
{
$tmp2 = explode(": ",$tmp[$i]);
$info[$i][key] = trim($tmp2[0]);
$info[$i][val] = trim($tmp2[1]);
}
}
echo "<table border=0 cellpadding=3 cellspacing=1 class=contenttable width=100%>\n\n";
echo "<tr><td height=20> </td></tr>\n";
echo "<tr class=row0><td colspan=2>Camera Instellingen</td></tr>\n";
for($i = 0; $i <= count($info); $i++)
{
if($info[$i][key] && $info[$i][val])
echo "<tr class=row1><td width=100>{$info[$i][key]}</td><td>{$info[$i][val]}</td></tr>\n";
elseif($info[$i][key] && !$info[$i][val])
echo "<tr class=row1><td colspan=2>{$info[$i][key]}</tr>\n";
}
?>
krijg ik deze error:
Fatal error: Maximum execution time of 10 seconds exceeded in /data/members/free/tripod/nl/j/o/h/johankrug/htdocs/fotos/index.php on line 372
en dat is deze lijn: while (!feof($fp)) {
wie kan mij helpen om te zorgen dat dit script het weer goed doet?? b.v.d. Johan
1.150 views