<?php
$request = curl_init('http://www.example.com/upload.php');
curl_setopt($request, CURLOPT_POST, true);
curl_setopt($request,
CURLOPT_SAFE_UPLOAD, true); curl_setopt(
$request,
CURLOPT_POSTFIELDS,
[
'blob[0]' => new CURLFile(realpath('first-file.jpg'), 'image/jpeg'),
'blob[1]' => new CURLFile(realpath('second-file.txt'), 'text/plain'),
'blob[2]' => new CURLFile(realpath('third-file.exe'), 'application/octet-stream'),
] );
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($request);
//Получим свойства
$options = $this->features->get_product_options($product->id);
$products_ids
наверное имелось в виду? $ dig -t AAAA api.binance.com
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
...
;; QUESTION SECTION:
;api.binance.com. IN AAAA
;; ANSWER SECTION:
api.binance.com. 92 IN CNAME d3h36i1mno13q3.cloudfront.net.
$ dig -t AAAA d3h36i1mno13q3.cloudfront.net.
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
$z = "Запрос на доступ\nТелефон: 79991457764\nДанные: Останкин Ostoonekeen";
$r = "/(?<=\\n).*/";
var_dump($z);
var_dump($r);
/*
string(101) "Запрос на доступ
Телефон: 79991457764
Данные: Останкин Ostoonekeen"
string(11) "/(?<=\n).*/"
*/
/* index.php */
$controllerClass = ucfirst($_GET['controller']);
$method = $_GET['method'];
require_once("controllers/$controllerClass.php");
$controller = new $controllerClass();
$controller->$method();
CURLOPT_HTTPHEADER An array of HTTP header fields to set, in the format array('Content-type: text/plain', 'Content-length: 100')
<input name="file" type="file" multiple="">
.if(isset($data["send__button"])) {
<button class="send__button" type="submit">Send</button>
http://
в ссылке.$API = "http://rzhunemogu.ru/RandJSON.aspx?CType=1";
$s = iconv("cp1251", "utf-8", file_get_contents($API));
$s = str_replace(["\r", "\n"], ["\\r", "\\n"], $s);
$o = json_decode($s);
print $o->content;