|All requests||>||read html files||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Najeem M Illyas - 4 years ago (2018-05-22)
I need to read html file and publish its content as web page
You can use the cUrl php. My package is very simple to use. Make sure before that the php cUlr extension is enabled on your php server. The cUrl is a very fast way to get web contents: html single files or entire web pages, js files, css files, text files ...
include_once("./lib/class.curlmulti.php"); $ref= new cURmultiStable;
$urllinkarray = array('put a link to an url here'); $urls = $ref->runmulticurl($urllinkarray);
<?php // I need to read html file and $homepage = file_get_contents('ht'.'tps:/'.'/www.google.com/'); // publish its content as web page echo $homepage;
// from file_get_contents manual, next time do your homework yourself