POSIX 멀티쓰레드 사용
http://www.smddzcy.com/2016/01/tutorial-multi-threading-in-php7-pthreads
http://php.net/manual/kr/book.pthreads.php
$var_array = array_values(array_filter($var_array));
root 권한으로.
실행.
systemctl unmask nginx.service
CURLOPT_POSTFIELDS |
The full data to post in a HTTP "POST" operation. To post a file, prepend a filename with @ and use the full path. The filetype can be explicitly specified by following the filename with the type in the format ';type=mimetype'. This parameter can either be passed as a urlencoded string like 'para1=val1¶2=val2&...' or as an array with the field name as key and field data as value. If value is an array, the Content-Type header will be set to multipart/form-data. As of PHP 5.2.0,value must be an array if files are passed to this option with the @ prefix. As of PHP 5.5.0, the @ prefix is deprecated and files can be sent using CURLFile. The@ prefix can be disabled for safe passing of values beginning with @ by setting the CURLOPT_SAFE_UPLOAD option to TRUE . |