Gogeta_44
10-23-2004, 02:31 AM
I'm using a dynamic navbar setup for a site i'm designing. It loads a file in php into the current file with:
<?php
if (!($f=fopen("phpnavcode.php","r")))
exit("Unable to open NavBars.");
while (!feof($f))
{
$x=fgetc($f);
echo $x;
}
fclose($f);
?>
but then in the file it loads, it needs to execute some php code to detect what browser the user has. It won't b/c php works line by line so I need to get it to reread the php loaded from the file.
Thanks
<?php
if (!($f=fopen("phpnavcode.php","r")))
exit("Unable to open NavBars.");
while (!feof($f))
{
$x=fgetc($f);
echo $x;
}
fclose($f);
?>
but then in the file it loads, it needs to execute some php code to detect what browser the user has. It won't b/c php works line by line so I need to get it to reread the php loaded from the file.
Thanks