hasanatkazmi Posted December 15, 2007 Share Posted December 15, 2007 is there any function or a class which can be used to load contents of whole web page in a variable. I tried fopen but this cant be used to open all webpages becuase if a webpage is like ...com/site/world it will not open Link to comment https://forums.phpfreaks.com/topic/81809-solved-loading-whole-webpage-in-a-variable/ Share on other sites More sharing options...
benjaminbeazy Posted December 15, 2007 Share Posted December 15, 2007 file_get_contents() returns afile to a string ie. $content = file_get_contents('http://example.com'); Link to comment https://forums.phpfreaks.com/topic/81809-solved-loading-whole-webpage-in-a-variable/#findComment-415632 Share on other sites More sharing options...
hasanatkazmi Posted December 15, 2007 Author Share Posted December 15, 2007 oo thanks, i just forgot this function Link to comment https://forums.phpfreaks.com/topic/81809-solved-loading-whole-webpage-in-a-variable/#findComment-415636 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.