Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

SimpleHtmlDom

Modified version of http://sourceforge.net/projects/simplehtmldom/ with cache support

####Cache info The cache writes the content of the website into a text file in the cache folder. The file is named by the md5 hash of the url. When the file is older than the default cache duration (24h), it will be overwritten.

####Simple cache example In this example the cache folder is set to "mycachefolder", the default value is "cache".

The methode fileGetHtml has a new param, which is called $hours, this sets the cache duration. In further version the param will be changed to a static variable.

<?php
use ThauEx\SimpleHtmlDom\SHD;

SHD::$fileCacheDir = "mycachefolder";
$html = SHD::fileGetHtml("http://google.de/");
?>

About

No description, website, or topics provided.

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages