Posted on 06 February 2011. Tags: eval, file_get_contents
function parse($file) {
global $str;
ob_start();
include($file);
$buffer = ob_get_contents();
ob_end_clean();
return $buffer;
}
function parse($file) { global $str; ob_start(); include($file); $buffer = ob_get_contents(); ob_end_clean(); return $buffer;}
Posted in PHP
Posted on 14 December 2009. Tags: file_get_contents, mb_convert_encoding, xml
$requestAddress = “your XML url”;
$xml_str = file_get_contents($requestAddress,0);
$xml_str = mb_convert_encoding($xml_str, ‘UTF-8′, “iso-8859-7″);
//mb_convert_encoding(‘The URL’, ‘The URL Encoding’, ‘Your encoding’)
Posted in PHP