PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   Photo Frame   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Photo Frame
Generate picture frames of with custom text
Author: By
Last change:
Date: 17 years ago
Size: 378 bytes
 

Contents

Class file image Download
<?php

//Initialize all the variables needed.
$textArray = array("Hello", "This is a sample text", "Hi there", "Created by Rochak Chauhan", "PHP is Simple", "Keep it simple");
$frameWidth = 500;
$frameHeight = 400;

require_once(
"PhotoFrame.inc.php");
$photoFrame = new PhotoFrame($frameWidth, $frameHeight, $textArray);

echo
'<img src="final.png" border="0" />';
?>