Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pulling content from a live site

Status
Not open for further replies.

dfelstead

MIS
Feb 7, 2006
7
GB
Hi

Does anyone know of how to pull a live htmp page onto another html page.

What I am after is to use a live site as a background so the content of my site will sit on top of the pulled site.

I have been using the code on the test site but it doesn’t seem to display the images from the pulled site.

Test site:

Cheers
Daniel
 
If I understand your question correctly, you want to fetch a live page from somewhere, including images, render that page, convert it to an image, then use that image as the background image for your site.

That's quite an undertaking.



Want the best answers? Ask the best questions! TANSTAAFL!
 
No it's not that complicated.

I want to fetch a live page from somewhere, including images but it doesn’t need to render that page, convert it to an image, then use that image as the background image for your site.

All it needs to do is sit on my page as live html for instance sitting within a div. I can then put a layer on top of it.
 
There are several ways of fetching HTML from a site.

If your php.ini has allow_url_fopen set to "on", you can use fopen() and fread() to fetch the page.

Other possibilities are cURL or fsockopen().



Want the best answers? Ask the best questions! TANSTAAFL!
 
Thanks for that,

Could you show/lead me to how I could write the code ito include this bit of script?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top