[Chameleon] ExtractData widget readfile connection refused on localhost

Julien-Samuel Lacroix jlacroix at mapgears.com
Wed Sep 29 08:52:32 EST 2010


Hi,

I'm not sure where the readfile() statement is, but it should work if 
you try with http://127.0.0.1/ instead of http://localhost/

Let us know.

Julien

On 10-09-28 11:03 PM, Jeff Hamm wrote:
> Dear list,
>
> When using an ExtractWFSData widget with Chameleon2.6/MapServer5.6/PHP5.3 I am having a problem with a
> readfile($szURL) which results in a connection refused error when $szURL is on the local domain.
>
> - php.ini setting for allow_url_fopen = On
> -  file to be downloaded resides in the /tmp/img web_path
> - using the URL directly in the browser will download the file,
> - readfile($szFileName) will work on the local filesystem, but
> - a URL such as readfile(http://localhost/tmp/img/filename) fails.
> I tried using Curl instead, but hit the same wall.
>
> Is there a workaround? Is it a config issue?
>
> My last broken widget, so I hope someone can help me out :)
>
> Jeff Hamm
> www.geoprism.ca
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list