PHP4 PHP5 Code Switch at Runtime
Posted: Tue May 13, 2008 9:02 am
Hi,
I'm running a small site with Joomla. I'm using a component that needs php4 but I'm need php5 for another component. I'm getting a warning on deprecated function calls but I don't own the php.ini since it's a hosting service.
How would you know at run time which version of PHP was running so I can just use a different class or file to avoid the warning?
Thanks,
Darren
I'm running a small site with Joomla. I'm using a component that needs php4 but I'm need php5 for another component. I'm getting a warning on deprecated function calls but I don't own the php.ini since it's a hosting service.
How would you know at run time which version of PHP was running so I can just use a different class or file to avoid the warning?
Thanks,
Darren