As mentioned - the API is pure HTML and PHP is a server side language.
You need to seperate the <script> from the <?php sections.

If you have PHP variables you need to use, then you need to parse them
to the client as javascript variables.
Like for example

var timeVar = <?php echo $php_timeVar ?>;

.nikolaj

On Feb 8, 8:39 am, "[email protected]" <[email protected]>
wrote:
> On Feb 7, 10:57 pm, yasir <[email protected]> wrote:
>
> > hi,
>
> > I am doing project with Google map api and using php and java script.
> > I am facing difficulty that Google map does not display in php pages.
> > If you know about this please help me to solve this problem.
>
> PHP can be used to create HTML pages.  The google maps API works from
> HTML/Javascript in the browser.
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > best regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to