Cheetah
image.php
Go to the documentation of this file.
1 <?php
2 
8 $sFile = "files/" . (int)$_GET['id'] . ".jpg";
9 if(!file_exists($sFile))
10  $sFile = "files/default.png";
11 
12 header("Content-type: image/jpeg");
13 readfile($sFile);
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition: URI.MungeResources.txt:10
php
$_GET
$_GET['debug']
Definition: index.php:67
$sFile
$sFile
Definition: image.php:8