On Jan 7, 8:06 am, "[email protected]" <[email protected]>
wrote:
> I feel hopeless not idea where is the mistake.
>
> i forgot to mention that  i get a error  when this line is in the
> code      header("Content-type: text/xml");
>
> Warning: Cannot modify header information - headers already sent by
> (output started at /home/ebook/public_html/phpsql_dbinfo2.php:5) in /
> home/ebook/public_html/phpsqlsearch_genxml.php on line 38

That implies to me that the space is before that line in your code.
You can't change the "Content-type" of the stream once it has started
outputting data, and the space counts as data.

Try removing all the line feeds from the php before that point.  If
that still doesn't work, try remove all the extraneous white space.

  -- Larry


>
> I delteete that line and do get errors btu the map doesnt work either
>
> in my first sample  http://www.e-bookings.net/maphotelsample.html i
> get the same eoro message and i deleted  header("Content-type: text/
> xml"); and the map worked
> this is a tutorial which doesnt have a live sample like others only
> jpg that doesn help much i must say
>
> On Jan 7, 10:43 am, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On Jan 7, 7:15 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > hello Larry, yes i see in the 
> > > sourcehttp://www.e-bookings.net/phpsqlsearch_genxml.php?lat=47.60621&lng=-1...
> > >   <?xml version="1.0"?>
>
> > > Do you know how fix that i dont see in .php or html where is the
> > > mistake
>
> > Somewhere in your php there is a space (or maybe a blank line) that
> > gets output to the xml stream.
>
> >   -- Larry
>
> > > On Jan 7, 7:53 am, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Jan 7, 3:32 am, Andrew Leach <[email protected]> wrote:
>
> > > > > On Jan 7, 6:06 am, "[email protected]" <[email protected]>
> > > > > wrote:
>
> > > > > > I dont know much php either, and i dotn knw how get a working 
> > > > > > veriosn
> > > > > > and see the code since the google tutorial seems to be just guides. 
> > > > > > If
> > > > > > anyone knows please i would appreciate the help.
>
> > > > > Looks like you got it 
> > > > > working.http://www.e-bookings.net/phpsqlsearch_genxml.php?lat=47.60621&lng=-1...
> > > > > now provides results.
>
> > > > As does a search from Seattle, WA in IE6 
> > > > on:http://www.e-bookings.net/mapsearch.html
>
> > > > But... with firefox, I don't see any results and the error console
> > > > shows:
> > > > Error: XML or text declaration not at start of entity
> > > > Source File:http://www.e-bookings.net/mapsearch.html
> > > > Line: 1, Column: 2
> > > > Source Code:
> > > >  <?xml version="1.0"?>
>
> > > > Looks like your PHP is putting out a space before the <?xml ...?>
> > > > declaration, which is technically invalid XML.
>
> > > >   -- Larry
>
> > > > > Andrew- Hide quoted text -
>
> - Show quoted text -
-- 
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.


Reply via email to