[OSM-dev] POI layer refusing to talk to server php

Nick Whitelegg Nick.Whitelegg at solent.ac.uk
Mon Jan 10 14:33:49 GMT 2011


>>
>> 1. Complete guess but are you outputting anything - including spaces -
>> before the header() line? (in which case the header() line will have no
>> effect).
>>
>> 2. Have you tried using XML or JSON as the data format instead?
>>

>1. Yes, I checked for that trip wire. The content type is evaluated and
>visibly changes the browser behaviour when called directly.

>2. No. That would require a full rewrite of my php script for a data format
>that I am not familiar with. Since it looks like a communication problem and
>not a data problem, I am not that desperate yet. :-)

OK, have to admit I'm not sure in that case. The reason I suggested XML or JSON btw was because I know for certain that they work, but if the OL docs suggest plain text should work then yours should be OK.

Another random guess, but: CR/LF issue (incompatibility between UNIX and Windows text formats) maybe? 

You might want to subscribe to the openlayers mailing list, someone on there should almost certainly be able to fix your issue.

Nick




More information about the dev mailing list