Search
 
SCRIPT & CODE EXAMPLE
 

PHP

server php log

cat /var/log/php7.4-fpm.log
#change php version
Comment

how to log out php

session_destroy();
session_unset();
unset($_SESSION["loggedin"]);
$_SESSION = array();
Comment

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))));
    }
?>

Comment

PREVIOUS NEXT
Code Example
Php :: php absint 
Php :: laravel 7 upload file s3 
Php :: laravel withcount change name 
Php :: html windows logo 
Php :: php json decode 
Php :: wordpress add submenu under custom post type 
Php :: PHP sprintf — Return a formatted string 
Php :: laravel filter 
Php :: PDO::ATTR_EMULATE_PREPARES = true Security issue 
Php :: laravel how to query belongsTo relationship 
Php :: how to add files in child theme in theme editor 
Php :: php return more than one value 
Php :: php object example 
Php :: how to re assign value of associative array after assign in php 
Php :: laravel sync with attributes 
Php :: guzzlehttp http_errors get 
Php :: laravel zoom integration 
Php :: php explode and get first value 
Php :: laravel log error 
Php :: laravel get route 
Php :: php xpath get all image 
Php :: Passing values to blade using redirect() and back() functions 
Php :: value() in laravel 
Php :: bool value of blank string inp php 
Php :: php artisan key:generate error 
Php :: Laravel whereHas with count 
Php :: laravel crud application 
Php :: laravel create get id 
Php :: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated Filename: core/Output.php 
Php :: API call in PHP using cURL 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =