~wwwphp
3 itemsDownload ./*


..
colortime.php
file.php
setup.php


phpfile.php
1 0465 years agoDownloadRawClose


<?php
    function readf($file) {
        $fh=fopen($file,'r');
        $data=fread($fh,filesize($file));
        fclose($fh);
        return $data;
    }

    function writef($file,$data) {
        $fh=fopen($file,'w');
        fwrite($fh,$data);
        fclose($fh);
        return 0;
    }

    function appendf($file,$data) {
        $fh=fopen($file,'a');
        fwrite($fh,$data);
        fclose($fh);
        return 0;
    }

    function no_ext($name) {
        return substr($name,0,strrpos($name,'.'));
    }
?>

Top
twily at twily dot info
©twily.info 2013 - 2021



1 576 419 visits
... ^ v