Location: PHPKode > scripts > Protect picture > class_protect_picture_example.php
<?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();
?>
Return current item: Protect picture