Answers for "php logs linux"

PHP
1

how to see php error log

/usr/local/apache/logs/error_log
Posted by: Guest on April-21-2020
0

log php

For those interested. Works with older than 4.3 versions.

<?php
    function byteConvert($bytes)
    {
        $s = array('B', 'Kb', 'MB', 'GB', 'TB', 'PB');
        $e = floor(log($bytes)/log(1024));
      
        return sprintf('%.2f '.$s[$e], ($bytes/pow(1024, floor($e))));
    }
?>
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language