> Warning: Cannot modify header information - headers already sent by
...
It's failing because something somewhere is outputting some data
before it gets to the header() code.
When it's not obvious, that is usually because there is a blank line
outside of any <?php brackets in the file including the header(), or
in any included files that are included before the header() is
reached. In the case of included files, the blank line could be at
the end for example.
This is a php issue, not a maps issue,.
> Here is the top of my index.php
>
> <?
> require("mapshit.php");
> ?>
> <head>
>
> Here is the top of mapshit.php
>
> <?php
> require("dbinfo.php");
> header("Content-type: text/xml");
Doesn't index.php output the webpage containing the map? Why do you
include the unpleasantly named file that outputs XML? These are two
different functions. You don't want a single output that starts off
as XML and switches to HTML part way through.
If you're trying to follow the structure of the 'store locator'
example, it doesn't do it that way. It outputs an HTML page,
including the maps javascript, full stop. When the javascript wants
some XML data, it asks a differently-named php file for it and gets
XML data back.
A good candidate for your 'blank line' is in your dbinfo.php file
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---