Delivering data as an attachment is just adding one header to tell the
browser that it should present it as an attachment to the user. Thus the
content is the same as if it wasn't an attachment. The php function
file() works fine, as should any other function.
Steven
elvin ibbotson schreef:
I am making this request here because I am not sure who looks after
the xapi code. I have posted a question on the _xapi talk page_
<http://wiki.openstreetmap.org/index.php/Talk:Osmxapi> on the wiki but
it may not get noticed.
I am using my limited skills as a PHP novice to access subsets of data
via xapi for conversion to a compact binary format, but the query
format (eg.
osmxapi.hypercube.telascience.org/api/0.5/way[highway=motorway|trunk][bbox=....]
delivers the data as an attachment (data.osm) and I do not know how to
access this using PHP. My script is derived from those by Adam
Boardman and Paul Fox for the binary data proposal which use the OSM
API and expect the XML data to be in the body of the HTML rather than
as an attached file. But the standard API is limited to 0.25 degrees
and does not allow the content filtering offered by xapi. I would
appreciate some advice from the xapi expert(s) on how to...
get the data bundled into the body or...
tell xapi where to save the data file attachment or...
save/open/read the data file using PHP
elvin ibbotson
------------------------------------------------------------------------
_______________________________________________
talk mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
_______________________________________________
talk mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk