[FGS] (no subject)

Normand Savard nsavard at mapgears.com
Tue Aug 4 11:02:24 EST 2009


Peter Korduan wrote:
>
> Dear foss-gis user,
>
> I posted this some days before to the list, but it didn’t receive the 
> list. Its not in the archive.
>
> I use a fgs installation since some years successfully in the kvwmap 
> project, now (version 1.0) on a suse linux and missing now the http 
> wrapper for php.
>
> The phpinfo() let me know:
>
> Registered PHP Streams php, file, data, compress.zlib
>
> Its not other in 9.5.
>
> I can not see any hint in documentation why the developer removed this 
> feature. I need it e.g. to read wms images from remote servers with 
> file_get_contents().
>
> Since the new fgs version, I can not load remote files from a 
> different server and get warnings like this.
>
> getimagesize(http://www.gaia-mv.de/dienste/DOP?REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&LAYERS=DOP&SRS=EPSG:2399&FORMAT=image/png&BBOX=5444984.76482,5952462.50224,5445249.34232,5952822.37847&WIDTH=1875&HEIGHT=2550)
>
> failed to open stream: No such file or directory
>
> I think it not depend on access rights, because the mapserver can read 
> the wms images.
>
> I set the appropriated parameter in php.ini already
>
> allow_url_fopen = On
>
> allow_url_include = On
>
> If I could add the feature to php I would be glad, but I also did not 
> found anything about it in php docs.
>
> Was it forgotten in compiling process for fsg?
>
> What I have to do to add this common http stream to php?
>
Peter,

Since curl is compiled as a shared module, you need to add the following 
line to php5.ini.template and do "fgs stop", "fgs start".

extension=php_curl.so

I don't know why it didn't come out before with PHP 5.2.5.

Norm


More information about the Foss-gis-suite mailing list