JavaScript readfile function
A JavaScript equivalent of PHP’s readfile
function readfile (filename, use_include_path, context) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brett-zamir.me)
// - depends on: echo
// * example 1: readfile('http://kevin.vanzonneveld.net/pj_test_supportfile_1.htm');
// * returns 1: '123'
var read_data = this.file_get_contents(filename, use_include_path, context); // bitwise-or use_include_path?
this.echo(read_data);
return read_data;
}
Example 1
readfile('http://kevin.vanzonneveld.net/pj_test_supportfile_1.htm');
Should return
'123'
Комментарии:
Нету комментариев для вывода...