PHP Classes
Icontem

File: class.image.config.unix.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ronald Zeus  >  clsImage  >  class.image.config.unix.php  
File: class.image.config.unix.php
Role: Configuration script
Content type: text/plain
Description: configuration file for a UNIX host environment
Class: clsImage
Image manipulation with PHP 4 and PHP 5 support
 

Contents

Class file image Download
<?php
/**************************************************************************
 * CONFIG clsImage (filename: class.image.config.php)
 *
 * This is the configuration file for the class clsImage 
 */
 
/* SCRIPT ERROR REPORTING 
   Used for script debugging only.
   Options: 
       error_reporting [OFF|ON] [ error_reporting(0) | error_reporting(E_ALL) ]
         IMAGEDEBUG      [OFF|ON|SOURCEDEBUG] [ 0 | 1 | 2 ]
     */
     
   //error_reporting(0);
   
define("IMAGEDEBUG","0");     

/* FILE BASE LOCATIONS (no trailing slash!)
   These parameters are used for loading and storing images from and 
     to disk, the browser clients must have read/write access on
     the psysical disk locations. 
     
     Do not provide execute (and list) permissions to this 
     directory for security reasons.
     
     WINDOWS examples: 
       IMAGEDIRSEPARATOR \\
       IMAGEBASEURL      http://www.domain.com/images/temp
         IMAGEBASEPATH     C:\\inetpub\\wwwroot\\sitename\\images\\temp
         
     UNIX examples:
       IMAGEDIRSEPARATOR /
       IMAGEBASEURL      http://www.domain.com/images/temp
         IMAGEBASEPATH     /www/sitename/images/temp */         
         
     
define("IMAGEDIRSEPARATOR","/");
   
define("IMAGEBASEURL","http://www.domain.com/<writeable directory (777)>");
   
define("IMAGEBASEPATH","/usr/local/psa/home/vhosts/domain.com/httpdocs/phpclasses/<writeable directory (777)>");

/* FONT FILE LOCATION (no trailing slash!)
   This parameter provides the full filelocation of the fontfile 
     which is used for writing text on the image. The full path with
     filename and extension must be provided.
     
     WINDOWS example: C:\WINNT\fonts
     UNIX    example: /usr/local/font */
     
   
define("IMAGEFONTDIR","/usr/local/psa/home/vhosts/domain.com/httpdocs/<your fontdir>");
     
/* DEFAULT IMAGE QUALITY
   These parameters define the image quality, these parameters
     are used in the script when saving an image to disk. 
     These parameters set the defaultvalues, these values can be 
     overruled by setting the object properties to a custom value.
     
     $objImage->jpegquality = 80 (range 1..100)
     $objImage->interlace = true (or false)
*/
     
  
define("IMAGEINTERLACE","1");
  
define("IMAGEJPEGQUALITY","80");    
?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products