output another website content in your page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cronus
Forum Newbie
Posts: 2
Joined: Sat Dec 20, 2008 10:17 am

output another website content in your page

Post by cronus »

I wonder if anyone has php code for doing this? Either using DOM or cURL you can get just source code, but when you echo it, it sometimes returns page without images or css styles, so maybe somebody knows how to fully echo another page?

Thank you!
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

Re: output another website content in your page

Post by toasty2 »

I think the problem you're describing is that some of the URLs for including resources (images, stylesheets) are relative. You need to make them absolute.
Post Reply