%PDF- %PDF-
Server IP : 79.170.40.229 / Your IP : 3.22.217.202 Web Server : Apache System : Linux web232.extendcp.co.uk 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64 User : 1stforcarhirealicante.com ( 296923) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/cwd/libraries/domit/ |
Upload File : |
<?php if (!defined('PHP_TEXT_CACHE_INCLUDE_PATH')) { define('PHP_TEXT_CACHE_INCLUDE_PATH', (dirname(__FILE__) . "/")); } class php_file_utilities { /** * Retrieves binary or text data from the specified file * @param string The file path * @param string The attributes for the read operation ('r' or 'rb' or 'rt') * @return mixed he text or binary data contained in the file */ function &getDataFromFile($filename, $readAttributes, $readSize = 8192) { $fileContents = null; $fileHandle = @fopen($filename, $readAttributes); if($fileHandle){ do { $data = fread($fileHandle, $readSize); if (strlen($data) == 0) { break; } $fileContents .= $data; } while (true); fclose($fileHandle); } return $fileContents; } //getDataFromFile /** * Writes the specified binary or text data to a file * @param string The file path * @param mixed The data to be written * @param string The attributes for the write operation ('w' or 'wb') */ function putDataToFile($fileName, &$data, $writeAttributes) { $fileHandle = @fopen($fileName, $writeAttributes); if ($fileHandle) { fwrite($fileHandle, $data); fclose($fileHandle); } } //putDataToFile } //php_file_utilities ?>