UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

12 lines (10 loc) 454 B
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; }