mam taki skrypt:
Kod
<?
if ( basename($_SERVER['HTTP_REFERER']) == "podstrona.html" )
{
$plik="1.gif";
}
orif ( basename($_SERVER['HTTP_REFERER']) == "nastepna_podstrona.html" )
{
$plik="2.gif";
}
else
{
exit;
}
header('Content-Type: image/jpg');
header('Content-Length: '.filesize($plik));
readfile($plik);
exit;
?>
if ( basename($_SERVER['HTTP_REFERER']) == "podstrona.html" )
{
$plik="1.gif";
}
orif ( basename($_SERVER['HTTP_REFERER']) == "nastepna_podstrona.html" )
{
$plik="2.gif";
}
else
{
exit;
}
header('Content-Type: image/jpg');
header('Content-Length: '.filesize($plik));
readfile($plik);
exit;
?>
Niestety nie dziala i wydaje mi sie ze powodem niewidocznosc zmiennej $plik poza klamrami.. jesli tak to jak to naprawic?
Z gory tnx za pomoc.