Ok...
I've managed to write the function, but I tested it on my friends server who is running php4, and it worked fine. When I moved it to a server running php3, didnt work.
Heres the code:
<in head>
<?php function echofile($file)
{
$fh = fopen($file, "r");
while(!feof($fh))
{
$char = fgetc($fh);
echo $char;
}
fclose($fh);
}
?>
<in body>
<?php echofile("menu.html"); ?>
What would make it so that it only works in php4, but not in php3?
Thanks,