Edit
by Najeem M Illyas - 6 years ago (2018-05-22)
I need to read and publish html file content
| I need to read html file and publish its content as web page |
Ask clarification
2 Recommendations
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.
| by riccardo castagna package author 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.
| by Afifi 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 |