FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to call external php script from html?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to call external php script from html? [message #172903 is a reply to message #172902] Fri, 11 March 2011 14:15 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  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...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lookup zip by IP address
Next Topic: browser url with #...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 13:51:09 GMT 2024

Total time taken to generate the page: 0.04448 seconds