Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confilct between two versions of PHP

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hello,

I'm having some problem with PHP and IMAP.
I have 2 versions of PHP installed on my server :

- Apache module
- CGI version

IMAP has been installed on both versions.

The problem is that it seems impossible to have IMAP work for both of them as you can see in this short explanation :

if :
extension=imap.so in php.ini
and :
;extension=imap.so in imap.ini
then :
only module version of php can use imap

if :
;extension=imap.so in php.ini
and :
extension=imap.so in imap.ini
then :
only cgi version of php can use imap

if :
;extension=imap.so in php.ini
and :
;extension=imap.so in imap.ini
then :
IMAP won't be activated on both version

if :
extension=imap.so in php.ini
and :
extension=imap.so in imap.ini
then :
IMAP will outpout errors because IMAP functions will be called twice.

Then, how am I supposed to make it work on both versions?

Thanks for helping ! :)
 
Have you considered copying and renaming the extension?
 
Hi DRJ478 :)

It sounds like a good idea but ... won't the imap functions still be called twice ?

Thanks for your input.
 
Maybe. Can't get my brain around this one in the few seconds I have to think about it. Let me ponder later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top