Login   Register  
PHP Classes
elePHPant
Icontem

File: protect_picture.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of MARY Matthieu  >  Protect picture  >  protect_picture.php  >  Download  
File: protect_picture.php
Role: Application script
Content type: text/plain
Description: script which read files
Class: Protect picture
Protect the path of yours pictures
Author: By
Last change:
Date: 2003-10-02 22:06
Size: 141 bytes
 

Contents

Class file image Download
<?php
session_start
();
$id $_GET['id'];
$file $_SESSION['class_protect_picture'][$id];
if (
file_exists($file)) readfile($file);
?>