PHP Classes

read html files: I need to read and publish html file content

Recommend this page to a friend!
  All requests RSS feed  >  read html files  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

read html files

Edit

Picture of Najeem M Illyas by Najeem M Illyas - 5 years ago (2018-05-22)

I need to read and publish html file content

This request is clear and relevant.
This request is not clear or is not relevant.

0

I need to read html file and publish its content as web page

Ask clarification

2 Recommendations

Fast PHP CURL Multiple Requests: Retrieve the content of multiple URLs using CURL

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of riccardo castagna by riccardo castagna package author package author Reputation 165 - 5 years ago (2018-09-10) Comment

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 ...

usage:

include_once("./lib/class.curlmulti.php"); $ref= new cURmultiStable;

$urllinkarray = array('put a link to an url here'); $urls = $ref->runmulticurl($urllinkarray);

echo $urls[0];


PHP data grid class: Display MySQL query results in HTML tables

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Afifi by Afifi Reputation 60 - 5 years ago (2018-05-28) Comment

<?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


Recommend package
: 
: