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

+1

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 class can retrieve the content of multiple URLs using CURL.

It can take an array of URLs and sends HTTP requests to all of them in parallel using the CURL extension multi-request support.

The class queues the URL of each page to be retrieved one at a time to make it more efficient.
This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of riccardo castagna by riccardo castagna package author package author Reputation 195 - 6 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 class can be used to display MySQL query results in HTML tables.

It executes a given SQL SELECT query and generates an HTML table defined by a template to display the query results.

The results table also shows links to navigate between query result pages. The number of result rows to display per page is configurable.

The results can be sorted by columns that the user may choose by clicking on column links. The list of sortable columns may be restricted.

A special column may be displayed with check box inputs to let the user choose specific rows to perform additional operations on the selected rows.

The content of the fields may be changed using custom callback functions.

The Javascript to handle row click events may also be customized.

Additional columns may be added to the generated table using a customization sub-class.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Afifi by Afifi Reputation 70 - 6 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
: 
: