Re: How to call external php script from html? [message #172903 is a reply to message #172902] |
Fri, 11 March 2011 14:15 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
astral wrote:
> How to call external php file from html page? Renaming page from .html
> to .php not suitable due many reasons. Modifying .htaccess file to make
> the PHP executable on the .html pages also not suitable. Calling PHP
> script from an external javascript not work:
> <script type="text/javascript"
> src="http://www.domain.com/file.php"></script>
> Calling from Iframe work, but its too ugly, I need specify width/height
> for iframe, whereas php script need display html output without iframe
> limitations.
> <iframe src="http://www.domain.com/file.php" width="600"
> height="300"></iframe>
>
> I there some other method?
>
The web SERVER needs to know that it must hand the page over to a a php
interpreter rather than sending it as a load of source code.
Unless you reconfigure the web server, you are screwed.
But it seems you want to call php on a different machine that supports it.
Why not redirect the whole page to that server?
If I-frames don't work there is - gasp - plain frames...
|
|
|