[Openstreetmap] PHP version of gps.jsp

Christopher Schmidt crschmidt at crschmidt.net
Fri Nov 26 18:02:05 GMT 2004


On Fri, Nov 26, 2004 at 05:11:50PM +0000, Matt Amos wrote:
> 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'];

After I just got in a big fight at work about the fact that we need to 
stop doing this in our code, you'd think I'd remember this.

Since the fix is trivial, I won't attach a new version, just add the 
line above on line 22 in the code.

I'll try and compile a 4.1 branch of MySQL after this weekend sometime.

-- 
Christopher Schmidt
crschmidt at crschmidt.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20041126/7fc79d01/attachment.pgp>


More information about the talk mailing list