Guerrieri Luca - 2007-04-11 07:42:02 -
In reply to message 3 from Anita Hunt
Scuse me for my tardive reply.
The PXAServer is developed to run with PHP5 or PHP4. When we decide the platform we must use the relative class.
PHP5
use the class in directory "libreria\if_use_php5"
PHP4
use the class in "libreria"
the difference is that with PHP5 when we istantiate a class we can use the method __autoload, thanks to "require ('../libreria/global.inc.php'); " on top of a script that use the referred class we can use the code in global.inc.php
function __autoload($classe){
require $classe.".class.php";
}
in this mode we intercept the request and we can instantiate the right class.
In PHP4 we can't use this method, we must "require" the at the begin of a script the right class for this reason i've split in if_use_php5 ... or not.
Another difference is that in php5 there is "access modifier" public protected... etc in php4, for this reason the php4 class of pxaserver have declaration of variable in that style (var $name_var)
Thanks for your interest, if you have ather dubt please contact me.
P.S.: Scuse me for my bad English