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 Quote Link to comment 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'); Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.