PHP/Mapscript as a module, curl

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Wed Apr 12 01:05:02 PDT 2006


Okay, solved this one finally.

The environment variables need to be set (and exported) in the shell before
Apache is started, or they can be added in the apachectl script.

Best regards,
Bart

>  -----Oorspronkelijk bericht-----
> Van: 	Eijnden, B. van den (Bart)  
> Verzonden:	maandag 20 maart 2006 13:19
> Aan:	MAPSERVER-USERS (E-mail)
> Onderwerp:	PHP/Mapscript as a module, curl
> 
> Hi list,
> 
> I am having a problem when using PHP/Mapscript as a PHP Module. One of my
> layers comes from a remote WMS, and this needs to go through a proxy. I
> have set the http_proxy environment variable.
> 
> When using PHP as a CGI, the map draws the remote WMS layer just fine.
> When I switch to PHP as a module, the remote WMS layer does not show up
> anymore (it does not time out either since the map returns blazingly
> fast).
> 
> Environment is PHP/Mapscript 4.8.1, Red Hat Enterprise 3 with PHP 4.3.11.
> 
> Has anybody experienced something similar? Does anybody have this type of
> configuration working (PHP as a module, remote WMS accessed through curl)?
> 
> Thanks in advance.
> 
> Best regards,
> Bart


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the MapServer-users mailing list