webCOMAND

io_comand_util\php_util

Convenience methods to access PHP process information.

Example

use \io_comand_util\php_util;

// get the max allowed upload size based on multiple factors
$max_size = php_util::get_max_file_upload();

// get a PHP ini setting and convert it from 1M format to bytes
$max = ini_get('upload_max_filesize');
$max = php_util::php_ini_size_to_bytes($max);

// echo a back trace as a simple string for debugging
$trace = php_util::get_trace_string();
echo($trace);

// display variable type or class name in a friendly format
echo(php_util::get_human_type($trace));