PHP 8.5.0 Beta 1 available for testing

Voting

: two minus one?
(Example: nine)

The Note You're Voting On

The Jedi
20 years ago
A quicker way to load a gziped file in a string :
<?php
function gzfile_get_contents($filename, $use_include_path = 0)
{
//File does not exist
if( !@file_exists($filename) )
{ return
false; }

//Read and imploding the array to produce a one line string
$data = gzfile($filename, $use_include_path);
$data = implode($data);
return
$data;
}
?>

<< Back to user notes page

To Top