PHP Classes

File: class.image.config.unix.php

Recommend this page to a friend!
  Classes of Ronald Zeus   clsImage   class.image.config.unix.php   Download  
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
Author: By
Last change:
Date: 20 years ago
Size: 2,223 bytes
 

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");
?>