DeanWhitehouse Posted July 3, 2008 Share Posted July 3, 2008 Is there a way to pull HTML code from a HTML file? Quote Link to comment https://forums.phpfreaks.com/topic/113020-pull-html-code-from-file/ Share on other sites More sharing options...
ag3nt42 Posted July 3, 2008 Share Posted July 3, 2008 http://w3schools.com/php/php_ref_filesystem.asp Quote Link to comment https://forums.phpfreaks.com/topic/113020-pull-html-code-from-file/#findComment-580571 Share on other sites More sharing options...
hitman6003 Posted July 3, 2008 Share Posted July 3, 2008 Just read the contents of the file into a string... $html = file_get_contents($filename); Quote Link to comment https://forums.phpfreaks.com/topic/113020-pull-html-code-from-file/#findComment-580572 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.