[ka-Map-users] Parse error in htdocs/XMLOverlay/xmlgetline.php
Daniel Ceregatti
daniel at ceregatti.org
Wed Sep 13 17:32:13 EDT 2006
Hi list,
I keep my project in svn. I export from ka-map CVS, and commit to svn. I
have a post-commit hook which runs a lint check on all php files. It
found this:
PHP Parse error: syntax error, unexpected T_STRING in
ka-map/htdocs/XMLOverlay/xmlgetline.php on line 12
Parse error: syntax error, unexpected T_STRING in
ka-map/htdocs/XMLOverlay/xmlgetline.php on line 12
Errors parsing ka-map/htdocs/XMLOverlay/xmlgetline.php
The fix:
diff -Naup xmlgetline.php.orig xmlgetline.php
--- xmlgetline.php.orig 2006-09-13 14:29:38.939888250 -0700
+++ xmlgetline.php 2006-09-13 14:29:43.600179500 -0700
@@ -8,8 +8,8 @@
header("Content-Type: text/xml");
header("Cache-Control: no-store, no-cache, must-revalidate");
-?>
echo '<?xml version="1.0" encoding="UTF-8"?>';
+?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Placemark>
<description>Transparent green wall with yellow outlines</description>
Daniel Ceregatti
More information about the ka-Map-users
mailing list