Page 1 of 1

PHP4 PHP5 Code Switch at Runtime

Posted: Tue May 13, 2008 9:02 am
by Darren996
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

Re: PHP4 PHP5 Code Switch at Runtime

Posted: Tue May 13, 2008 9:12 am
by onion2k

Re: PHP4 PHP5 Code Switch at Runtime

Posted: Tue May 13, 2008 9:25 am
by Darren996
Ah! Thanks!