Login   Register  
PHP Classes
elePHPant
Icontem

File: php4_compatibility.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of solomongaby  >  Newsletter Queue  >  php4_compatibility.txt  >  Download  
File: php4_compatibility.txt
Role: Documentation
Content type: text/plain
Description: php4 compatibility addon
Class: Newsletter Queue
Queue newsletters in MySQL for delivering later
Author: By
Last change:
Date: 2008-07-06 09:50
Size: 373 bytes
 

Contents

Class file image Download
The class is setup for php5, if you want to make it compatible to php4 all you have to do is replace the instanceof operator with the php4 corespondent function is_a

so you need to replace this line :
if ( ($this->mysqlObj instanceof mysql) === false ) {                 
with :
 if ( is_a($this->mysqlObj,'mysql') === false ) { 


thank you guto.onidesk@gmail.com