York
Terugkerende gebruiker
- Lid geworden
- 24 nov 2001
- Berichten
- 1.289
Krijg steeds de volgende fout
Warning: fopen(templates/standard/index.htm): failed to open stream: Success in /home/yoram20/public_html/test5/index.php on line 5
Warning: fread(): supplied argument is not a valid stream resource in /home/yoram20/public_html/test5/index.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in /home/yoram20/public_html/test5/index.php on line 7
Hieronder volgt het script van de pagina waar de fout optreed. Wat is er precies fout aan??
<?
include("config.inc.php");
$filename = "templates/${template}/index.htm";
$fd = fopen ($filename, "r");
$tmpl = fread ($fd, filesize ($filename));
fclose ($fd);
$domains = split(":",$domain);
$dcount = count($domains);
for ($i=0;$i<$dcount;$i++) {
$actuell = $domains[$i];
$options = $options . "
<option value=\"$domains[$i]\">$domains[$i]</option>";
}
$output = str_replace ( "%DOMAINOPTIONS%", "$options", $tmpl);
$output = str_replace ( "%COPYRIGHT%", "$copyright", $output);
$output = stripslashes ($output);
echo ($output);
?>
Greetzz York
Warning: fopen(templates/standard/index.htm): failed to open stream: Success in /home/yoram20/public_html/test5/index.php on line 5
Warning: fread(): supplied argument is not a valid stream resource in /home/yoram20/public_html/test5/index.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in /home/yoram20/public_html/test5/index.php on line 7
Hieronder volgt het script van de pagina waar de fout optreed. Wat is er precies fout aan??
<?
include("config.inc.php");
$filename = "templates/${template}/index.htm";
$fd = fopen ($filename, "r");
$tmpl = fread ($fd, filesize ($filename));
fclose ($fd);
$domains = split(":",$domain);
$dcount = count($domains);
for ($i=0;$i<$dcount;$i++) {
$actuell = $domains[$i];
$options = $options . "
<option value=\"$domains[$i]\">$domains[$i]</option>";
}
$output = str_replace ( "%DOMAINOPTIONS%", "$options", $tmpl);
$output = str_replace ( "%COPYRIGHT%", "$copyright", $output);
$output = stripslashes ($output);
echo ($output);
?>
Greetzz York