���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/vidoe.top/proxy/logs/curl/examples/ |
<?php // Receive PUT file. // See also "examples/put_large_file_chunked.php". function file_get_contents_chunked($filename, $chunk_size, $callback) { $handle = fopen($filename, 'r'); while (!feof($handle)) { call_user_func_array($callback, array(fread($handle, $chunk_size))); } fclose($handle); } $tmpnam = tempnam('/tmp', 'php-curl-class.'); $file = fopen($tmpnam, 'wb+'); // Use file_get_contents_chunked() rather than file_get_contents() to avoid error: // "Fatal error: Allowed memory size of ... bytes exhausted (tried to allocate ... bytes) in ... on line 0". file_get_contents_chunked('php://input', 4096, function ($chunk) use (&$file) { fwrite($file, $chunk); }); // @codingStandardsIgnoreFile