imperium2335 Posted July 16, 2009 Share Posted July 16, 2009 What I would like to do is be able to access websites through my own domain/website. Can this be done using Curl or get_file_contents? All the image srcs, css and hyperlinks would need to work also. Anyone have any ideas? Cheers. Link to comment https://forums.phpfreaks.com/topic/166203-php-web-browser/ Share on other sites More sharing options...
ignace Posted July 16, 2009 Share Posted July 16, 2009 Sure use file_get_contents() or curl to fetch the pages content. Use something like simplexml to go over your content and look for any img or a tags. Modify the paths: images/avatar.gif to: http://domain/images/avatar.gif same for the a element. Save the contents file_put_contents('pagename.html', $simpleXml); Link to comment https://forums.phpfreaks.com/topic/166203-php-web-browser/#findComment-876420 Share on other sites More sharing options...
trq Posted July 16, 2009 Share Posted July 16, 2009 Back asking the same question again. There are proxies written in php. Link to comment https://forums.phpfreaks.com/topic/166203-php-web-browser/#findComment-876441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.