[Openstreetmap] PHP version of gps.jsp

Matt Amos matt at matt-amos.uklinux.net
Fri Nov 26 17:11:50 GMT 2004


On Friday 26 November 2004 05:12, Christopher Schmidt wrote:
> Found the project tonight via some RDF friends, and noticed the
> HOWTO mentioning the ability to make a simpler version of the
> gps.jsp (for those of us who aren't javaheads and don't have tomcat
> around.)
>
> I hacked up the code that *should* be able to do this
> (although it is very untested, and it's late, so I may have made
> stupid errors.) I don't have an opengis capable database to try
> this on, so I'm just guessing in the dark.
>
> The code is attached. Feel free to let me know any problems you
> find, and I'll attempt to debug them.

looks cool! unfortuately i don't have a server to test it on... steve 
was trying to get a PHP server going, i think?

one small fix: your code requires register_globals, which is 
deprecated, iirc. fix is simple, just add:

$txt = $_GET['txt'];

in the same block as your $x = 0; $y = 0; stuff.

cya,

matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20041126/ad0aad6c/attachment.pgp>


More information about the talk mailing list