JavaScript php_ini_scanned_files
Return comma-separated string of .ini files parsed from the additional ini dir
1 2 3 4 56 7 8 9 1011 12 13 14 | function php_ini_scanned_files () { // Return comma-separated string of .ini files parsed from the additional ini dir // // version: 1109.2015 // discuss at: http://phpjs.org/functions/php_ini_scanned_files // + original by: Brett Zamir (http://brett-zamir.me) // % note 1: This comma-separated string of files contained in one directory must be manually set by the script to this.php_js.ini_scanned_files // * example 1: php_ini_scanned_files(); // * returns 1: 'myini.js,myini2.js' if (!this.php_js || !this.php_js.ini_scanned_files) { return false; } return this.php_js.ini_scanned_files; } |
Examples
Running
1 | php_ini_scanned_files(); |
Should return
1 | 'myini.js,myini2.js' |
Dependencies
No dependencies, you can use this function standalone.
Open syntax issues
php.js uses JsLint to help us keep our code consistent and prevent some common bugs.
Eventually we want all code to pass or at least take into consideration most fixes suggested by JsLint, following this JsLint configuration we’ve decided on.
Authors
Thanks to the following developers, you get to have php_ini_scanned_files goodness in JavaScript.
No comments yet. Be the first!
spread the word:
Use any PHP function in JavaScript
These kind folks have already donated: AYHAN BARI*, Nikita Ekshiyan, Nikita Ekshiyan, Petr Pavel, @HalfWinter, Paulo Freitas, Andros Peña Romo, @andorosu, Raimund Szabo, Nitin Gupta, @nikosdion, Anonymous, Anonymous and Shawn Houser.
<your name here>