Re: PHP from HTML

From: Date: Mon, 08 Apr 2002 05:59:45 +0000
Subject: Re: PHP from HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91989@lists.php.net to get a copy of this message
On Sun, 7 Apr 2002 20:03:42 +0200, Matja¾ Prtenjak <matjaz@matjazev.net> wrote: > SERVER1 with PHP.... some file with name xTest.php > xTest.php: ><? echo("Hi from SERVER1"); ?> > > SERVER2 without PHP.... some file with name file1.html > file1.html: ><html> > <body> > Server1 is saying : ????? > </body> ></html> > > How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from > SERVER1'? One possibility is an IFRAME. Unfortunately, IFRAME may not be compatible with all of the browsers you need to support and may cause undesirable scrolling effects, so I'd test carefully. One more compatible workaround would be to have your PHP return JavaScript: <script lang="javascript1.1"> document.write("Hello from Server1"); </script> In the HTML page on server2: <script src="http://server1/xTest.php"></script> Chris

« previous php.general (#91989) next »