I want to write a static HTML cache system for wordpress ,so waht I do is to create HTML file by getting the php excuted result( fopen(url,"r") ) or fsocksopen().
also I get abother way to get the result of php , the code bellow works fine for normal php code
$HTML = ABSPATH.'index.html';
$ori_dir = getcwd();
chdir(ABSPATH);
ob_start();
$_GET['p'] = 1;
include ABSPATH.'index.php';
$output = ob_get_clean();
//
// now write the HTML file
//
chdir( $ori_dir);
//
....
....
but for wordpress and other system, because of their templates merchanism,this does not work.
so I have to get HTML using URL file open or fsocksopen.
but unfortunately some host don't support fsocksopen or URL open.
Is there any other way to simulate browser to get the HTML code from a given URL?
thank you very much