Forum Moderators: coopster

Message Too Old, No Replies

Include html from external site

         

Brumptonm

10:39 am on Apr 28, 2005 (gmt 0)

10+ Year Member



I am trying to embedd html code in to a php page from an external site in a external server using the basic include('URL');.

I get the following messages

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known

Warning: main(URL): failed to open stream:

Does anyone know anything about teh is subject? is it possible to do this. If not what are the other options?

IamStang

11:30 am on Apr 28, 2005 (gmt 0)

10+ Year Member



Yes it is possible. The following works for me.
<?PHP
include "http://www.webmasterworld.com";
?>

As for why you are getting the errors you mentioned, someone else will have to handle those. I haven't really used the code above for anything other than testing to see if it can be done.

IamStang

Brumptonm

11:51 am on Apr 28, 2005 (gmt 0)

10+ Year Member



Thanks but for some reason that won't work for me. But i have found a nice little trick using iframes. The problem i have now is that because this sight is https (secure) everytime i load up the page with the new link page embedded it comes up with a security pop up this page includes both secure and unsure items which i need to get rid of .This seems to be the new problem that i think will be very hard to solve. anyone?

ncreegan

12:04 pm on Apr 28, 2005 (gmt 0)

10+ Year Member



<no longer pertinent>