Login   Register  
PHP Classes
elePHPant
Icontem

File: class_protect_picture_example.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  >  class_protect_picture_example.php  >  Download  
File: class_protect_picture_example.php
Role: Example script
Content type: text/plain
Description: examples: change the SRC of your pictures to test
Class: Protect picture
Protect the path of yours pictures
Author: By
Last change: new examples
Date: 2003-10-21 15:26
Size: 568 bytes
 

Contents

Class file image Download
<?php
session_start
();
require_once 
"class_protect_picture.php";
$ppicture = new protect_picture(session_id());
?>
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
       <title>Title here!</title>
</head>
<body>
<img SRC="./icon.gif" width="60">
<img src='./folder/test.jpg' width="60">
<img src='/home/user/pictures/test.jpg' width="60">
<input type='image' src='/home/user/pictures/submit.jpg'>
<img alt="Text" src="filename.jpg">
<img src=example.jpg>
<img
src="filename.jpg">
</body>
</html>
<?php
$ppicture
->protect();
?>