PHP Classes
Icontem

Class: phpizer


  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 Asher Wolfstein  >  phpizer  >  Download  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: phpizer Support forum
Base name: phpizer
Description: Load and adapt class to current PHP version (3.x+)
Version: 2.0
Required PHP version: 3.0
License: GNU General Public License (GPL)
All time users: 297 users
All time rank: 4351
Week users: 1 user
Week rank: 3545
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Asher Wolfstein
Name: Asher Wolfstein <e-mail contact>
Published packages: 6 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: http://www.kadardev.com/
Age: ???
All time rank: 1513
Week rank: 1406

Innovation Award

PHP Programming Innovation award nominee
November 2006
Number 3
PHP has evolved a lot over the time. The way certain things can be done has changed according to the PHP version.

This class uses Aspect Oriented Programming principles to adapt PHP code according to the PHP version in use.

It provides means to add or remove different code sections depending on the PHP version that is running. This makes possible to write code that takes the most of the latest PHP versions, while it still runs on older versions.

Manuel Lemos

Groups

Group folder image Language Constructs to assist in the language control View top rated classes

Detailed description

This class can be used to load and adapt a class according to the PHP version that is currently running.

It loads a given class script file and preprocess the code to make PHP version dependent adjustments.

It looks for special tags of the form %PHP# in comments of the class file to load. If the number in # matches the current PHP version, the lines are uncommented.

Version 2 now has tighter version control including ranges, as well as automatic variable globalization outside of classes and functions.

PROS: you can put if clause like structures into parts of your script otherwise inaccessible.

CONS: debugging loses effectiveness when errors occur. PHP locates all errors of included files in the eval statement.

I'm working on a FIX to the CON :-)

User ratings

There are not enough user ratings to display for this class.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Filebase can be used in association with, simply uncomment the appropriate lines in this project

Files

File Role Description
Plain text file phpizer.class.php Class Main Class
Plain text file phpizer.class5.php Class Main Class for PHP5
Plain text file phpizer.define.php Conf. Required Constant Definitions
Plain text file phpizer.proc.php Aux. Equiv. Procedures for PHP3
Plain text file phpizer.test.php Example Example / Test Script 1
Plain text file phpizer.test2.php Example Example / Test Script 2
Plain text file stack.class.php Class Test 2 File Include
Plain text file vtest_include.class.php Class Test Include File 1
Download all files: phpizer.tar.gz phpizer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  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