Here is a full working example of how to use IMGOWL,Now
let's see what happen
For non-template engine:
imgowl_sample.php
==================
<?php
session_start();
require_once("imgowl/imgowl.class.php");
$imgowl = new imgowl();
//********* Show 1# Pic ********************
//Set 1# pic to protect
$imgowl->setImage("sample","400","300","images/01.jpg","This
is #1 sample","http://www.propagator.net/imgowl/",1);
$imgowl->setWaterMark("imgowl/logo1.gif","10","10","60");
//Get pic with protection
$flash = $imgowl->getPic("sample");
//Show pic
echo $flash."<br><br>";
?>
We strongly recommend to use Smarty
template engine.It can make all things happend automatically.
|