You are here: Re: Temp downgrading of PHP version. « PHP Programming Language « IT news, forums, messages
Re: Temp downgrading of PHP version.

Posted by Janwillem Borleffs on 05/14/05 14:46

Don Freeman wrote:
> The situation I find myself in right now is that my home (read:
> development) machine has PHP5 installed but my target machine (read:
> production) only has version 4 installed. This has caused a couple
> of problems with testing passing my code but the production machine
> failing. (one example is the str_ireplace() function). I have been
> doing testing for the existence of a function but I first have to
> know if it is exclusive to version 5 whether or not it is necessary. Is
> there a flag I can set on my local machine to temporarily
> downgrade my version so that I will have the same limitations as the
> host machine?

There is no flag, but you could install both versions and, when using
Apache, toggle modules in your httpd.conf file:

# PHP4 enabled
LoadModule php4_module modules/mod_php4.so
#LoadModule php5_module modules/mod_php5.so

# PHP5 enabled
#LoadModule php4_module modules/mod_php4.so
LoadModule php5_module modules/mod_php5.so


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация