UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

48 lines (41 loc) 1.47 kB
--- layout: page title: "JavaScript php_ini_loaded_file function" comments: true sharing: true footer: true alias: - /functions/view/php_ini_loaded_file:601 - /functions/view/php_ini_loaded_file - /functions/view/601 - /functions/php_ini_loaded_file:601 - /functions/601 --- <!-- Generated by Rakefile:build --> A JavaScript equivalent of PHP's php_ini_loaded_file {% codeblock info/php_ini_loaded_file.js lang:js https://raw.github.com/kvz/phpjs/master/functions/info/php_ini_loaded_file.js raw on github %} function php_ini_loaded_file () { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // % note 1: This string representing the path of the main ini file must be manually set by the script to this.php_js.ini_loaded_file // * example 1: php_ini_loaded_file(); // * returns 1: 'myini.js' if (!this.php_js || !this.php_js.ini_loaded_file) { return false; } return this.php_js.ini_loaded_file; } {% endcodeblock %} - [view on github](https://github.com/kvz/phpjs/blob/master/functions/info/php_ini_loaded_file.js) - [edit on github](https://github.com/kvz/phpjs/edit/master/functions/info/php_ini_loaded_file.js) ### Example 1 This code {% codeblock lang:js example %} php_ini_loaded_file(); {% endcodeblock %} Should return {% codeblock lang:js returns %} 'myini.js' {% endcodeblock %} ### Other PHP functions in the info extension {% render_partial _includes/custom/info.html %}