PHP Classes

Running on PHP v4

Recommend this page to a friend!

      array2form  >  All threads  >  Running on PHP v4  >  (Un) Subscribe thread alerts  
Subject:Running on PHP v4
Summary:This class is built to run on PHP 5 ...to run on earlier version
Messages:1
Author:Mark Berube
Date:2009-06-16 01:38:48
 

  1. Running on PHP v4   Reply   Report abuse  
Picture of Mark Berube Mark Berube - 2009-06-16 01:38:48
I have received a few emails from people running on PHP 4. The script will die on the first line on PHP 4, but can be easily modified.

I don't have a server to test it, but all that should need to be done is to replace the "public" declaration with the keyword "var" on lines 12, 13 & 14. Also, remove the "private" declarations in front of each function in the class, and I believe everything should run OK on PHP 4.