...

View Full Version : Resolved Getting Access to Page's Source Code



legotack
02-23-2010, 02:55 AM
Is there a way to use PHP to get access to a page's source code and save it to a variable? If there is not a way to do it for a page that is not on your domain, is there a way to do it for a page that is on your domain?

Thanks!

kbluhm
02-23-2010, 03:05 AM
HTML source or server side source (PHP code, etc)?

HTML, yes. Server side, no.

JAY6390
02-23-2010, 04:13 AM
http://www.php.net/file_get_contents

legotack
02-23-2010, 12:38 PM
Thanks, Jay. That will work.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum