[imp] Using IMP with PHP running as a CGI
Paul J
paul@myitcv.org.uk
Fri, 4 Oct 2002 09:55:27 +0100 (BST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> >> And beside this, what are the technical reasons why we should not use IMP with
>> >> PHP as a CGI ?
>>
>> None as far as I can see. I simply un-tarred the lot, placed the she-bang
>> header in the appropriate files, configured horde and friends and off
>> we went. It is running through a modified suexec.
>
>Can you view (not download) image attachements without any problem ?
Yes, I just viewed and successfully downloaded a jpeg attached to one of my
mails. Is this what you meant?
>> >Got it. The problem is that $_SERVER['SCRIPT_NAME'] refers to the php CGI
>> >wrapper (the executable), and not the php script.
>>
>> Which version of the code are you referring to? I download the latest stable
>> version. Maybe your comments relate to CVS code, apologies if my comments are
>> out of place.
>
>The problem appears with imp/lib/MIME/Viewer/images.php (and probably others)
>revision 1.6.2.3, IMP branch RELENG_3.
>
>When incoking a php script, what is the value of $_SERVER['SCRIPT_NAME'] ?
According to phpinfo.cgi (a special version that uses the CGI version) it is
correctly set....
Paul
- --
Department of Computing, Imperial College, London
http://myitcv.org.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9nVeB0YkfvYj92P4RAiDxAJwPEWLXvtUGeWgGvJEbMfR37UaS7wCdFUTO
IOW7xSZ2YGsupKPyTgbtm3E=
=U2Rq
-----END PGP SIGNATURE-----