Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- php_ini_loaded_file() function --FILE-- <?php $inifile = __DIR__.DIRECTORY_SE..

Decoded Output download

--TEST--
php_ini_loaded_file() function
--FILE--
<?php
    $inifile = __DIR__.DIRECTORY_SEPARATOR.'loaded.ini';
    $php = '"'.getenv('TEST_PHP_EXECUTABLE').'"';
    $code = '"var_dump(php_ini_loaded_file());"';

    // No ini file
    passthru($php.' -n -r '.$code);

    // Specified ini file
    passthru($php.' -c "'.$inifile.'" -r '.$code);
?>
--EXPECTREGEX--
bool\(false\)
string\(\d+\) ".*[\/\]loaded\.ini"

Did this file decode correctly?

Original Code

--TEST--
php_ini_loaded_file() function
--FILE--
<?php
    $inifile = __DIR__.DIRECTORY_SEPARATOR.'loaded.ini';
    $php = '"'.getenv('TEST_PHP_EXECUTABLE').'"';
    $code = '"var_dump(php_ini_loaded_file());"';

    // No ini file
    passthru($php.' -n -r '.$code);

    // Specified ini file
    passthru($php.' -c "'.$inifile.'" -r '.$code);
?>
--EXPECTREGEX--
bool\(false\)
string\(\d+\) ".*[\/\\]loaded\.ini"

Function Calls

None

Variables

None

Stats

MD5 ffbf4ab11f04abbe81b9bb78544ba5f8
Eval Count 0
Decode Time 98 ms