Beste Ng,
Onderstaand script moet een plaatje teruggeven. Het werk als ik het
direct vanuit de browser aanroep als bijv status.php?vid=111111. Het
werkt NIET als ik vanuit een html code (externe html pagina) dit
plaatje wil laten zien d.m.v. <img src="status.php?vid=146297"
width="662" height="55">.
Staat op http://www.scumari.downloaden.com/status.php?vid=146297
Help.........:-S
<?php
header("Content-type: image/gif");
//$copcheck = copy ("http://de.www.ivao.org/whazzup.txt","data.txt");
//print ($copcheck);
//Open onderstaande URL
$file = "http://de.www.ivao.org/whazzup.txt";
$open = fopen($file, "r");
//Kijk of bestand = geopend en print een melding
if ($open) {
//Standby...sorry ;-)
//echo ("Bestand geopend<BR><BR>");
//Defineer variabelen en begin de lus die VID checkt
$fd = file($file);
for ($n=0;$n<count($fd);$n++) {
$haalregelop = explode(":", $fd[$n]);
//Print functie standby now.
//print ("<STRONG>$haalregelop[1]<BR></STRONG>");
$golf = (eregi($vid,$haalregelop[1]));
if ($golf) {
$endresult = 1;
//Nog een printfunctie standy.
//print ("<BR><H2>I got you!</H2><BR>");
}
//else {
//$endresult = 2;
//print ("<BR>Don't found your VID!<BR>");
//}
}
if ($endresult == 1) {
//print ("<BR><H1>Hi, you're online</H1>");
print ("<IMG SRC=\"fponline.gif\">");
}
elseif ($endresult != 1) {
//print ("<BR><h1>Sorry, you're !NOT! online<h1>");
print ("<IMG SRC=\"fpoffline.gif\">");
}
}
fclose ($open);
?>

Likes:

Quote