Posted by the DtTvB on 05/28/06 06:12
I use this way:
<?php
session_start();
if ($_SESSION['logged_in']) { // Change this to your password code...
header ('Content-Type: image/jpeg');
readfile ('image_secret_folder_123/' . $_GET['picname'] . '.jpg');
exit;
}
echo 'you don\'t have permission to watch this picture.';
?>
Navigation:
[Reply to this message]
|