OK this code here should include "lol_url" file:
<?php
$file = 'lol_count.txt';
$data = @file($file);
$data = $data[0];
if($handle = @fopen($file, 'w')){
$data = intval($data); $data++;
fwrite($handle, $data);
fclose($handle);
}
header('Location: '.include ('lol_url').'');
?>
the "lol_url" file contains an url address, such as:
http//www.example.com
How can I make this work because it gives me this error:
Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\max\xxx\88x31\lol_url:1) in E:\xampp\htdocs\max\xxx\88x31\lol_count.php on line 10
,and I would like to keep the address in "lol_url" as it is! Thanks