KML files? Why?
There are already free editors that use the industry standard interchange file format (gpx) to plan and display routes on a choice of Ordance Survey, OSM, OCM, GMaps, Satellite view, Street view.
The owner & writer of the one I happen to use was formerly a member on here, took himself a bit seriously, mind.
I am a professional, and I see lots of tutorials, and commercial software, that don't abide by the above creating security holes. Always beware of tutorials and sample code skipping on the security to "make it simpler", it's a fundamental principle.
The validating inputs thing is quite straightforward ... You could be expecting to read in data in a particular format but if some evil scrote who knows what (s)he is doing crafts some malicious php and feeds you that, you end up executing their code rather than yours instead! READ THIS.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.