On 28 mai, 09:31, bencoder <[email protected]> wrote:
> Hi all,
>
> I have a GWT application and need to integrate it with an existing PHP
> code.
> Hence, I embed the PHP code directly into the host HTML page which
> looks like below:
>
> <body>
>     <iframe src="javascript:.......................................></
> iframe>
>     <?php echo"<h1>ABC</h1>";?>
> </body>
>
> The result page is shown below and seems there is an error:
>
> ABC
> ";?>
>
> In conclusion, how can I embed my PHP source code into one GWT
> application?

What you see is how a browser parses the PHP code (<? starts a bogus
comment, which ends at the first "<", so you're seing the H1 and then
the ";?> part which is parsed as plain text), i.e. the PHP isn't
executed on the server-side but rather sent as-is to the browser. Are
you running it on another server (and using the -noserver mode in the
HostedMode/GWTShell) or are you stupidly trying to have the HostedMode/
GWTShell embedded server to execute your PHP code?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to