<?php
if (isset($_POST['prog1']))
{
mysql_query("UPDATE visitor SET button=button+1");
$sql = mysql_query("SELECT button FROM visitor");
$button = mysql_fetch_array($sql);
echo "<font face='Com' size='5' color='Grey'>Åßóáé ï <font size='6'
color='Yellow'>" .$button[0]. "<font size='5' color='Grey'>ïò ðïõ
êáôåâÜæåé ôï LogReader!<br>";
echo "<font face='Com' size='5' color='Grey'>Åëðßæù íá óïõ áñÝóåé êáé
íá óïõ öáíåß ÷ñÞóéìï!!";
$url = "http://members.tripod.co.uk/nikosgr/LogReader.exe";
header("location: $url");
mail ("nik0s@mycosmos.gr", "ÊÜðïéïò êáôÝâáóå ôï LogReader! ÊáôåâÜóìáôá: "
.$button[0], "", "From: ");
}
When the script executes it says that headers must be sent at the beggining! i
cant to that because i sent some staff first with echo! Is there a way to
replace header or use it somehow else that i can be able to make it start
download the file to the user?
Thanks!