PHP Classes

File: example1.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  PHP Resource Type Extension  >  example1.php  >  Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Resource Type Extension
Extend PHP resource values to save and load values
Author: By
Last change:
Date: 4 years ago
Size: 637 bytes
 

Contents

Class file image Download
<?php
require_once('Extended_resource.class.php');

$x=new resource('imagecreate(1000,98)');
header("Content-Type: image/png");
$background_color = imagecolorallocate($x->r(), 0, 0, 0);
$text_color = imagecolorallocate($x->r(), 233, 14, 91);
$text_color2 = imagecolorallocate($x->r(), 233, 233, 91);
$text_color3= imagecolorallocate($x->r(), 233, 91, 233);
imagestring($x->r(), 4, 25, 25, "Extended resource Object is useless but is there nevertheless (*_*)", $text_color);
imagestring($x->r(), 4, 556, 25, "(*_-)", $text_color2);
imagestring($x->r(), 4, 591, 25, "(-_-)", $text_color3);
imagepng($x->r());
unset(
$x);
?>

For more information send a message to info at phpclasses dot org.