<html>
<body>
<?php
if (!function_exists("file_get_contents")) {
function file_get_contents($filename, $use_include_path = 0) {
$data = "";
$file = @fopen($filename, "rb", $use_include_path);
if ($file) {
while (!feof($file)) $data .= fread($file, 1024);
fclose($file);
}
return $data;
}
}
$url = file_get_contents("latestlink.txt");
header ("Location: $url");
?>
</body>
</html>
when this is run, I get this error message...
Warning: Cannot modify header information - headers already sent by (output started at c:\apache\htdocs\examples\latestlink3.php:4) in c:\apache\htdocs\examples\latestlink3.php on line 18
Thanks.
Jon