Good day to all!
The $photos line is stored with a photo.
When displaying via echo displays correctly:
'file1' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/089dd91706ec5a801102fc.jpg','file2' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/40fc3c94aec04cde3fa9b8.jpg','file3' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/1edb44ca42ad51597678a2.jpg','file4' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/f9cbf3efd9a00b1f0fbb6b.jpg' Next, send
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $VKuploadUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, array($photos)); $otvet = curl_exec($ch); curl_close($ch); and in response [photo] => []
what if
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $VKuploadUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, array('file1' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/089dd91706ec5a801102fc.jpg','file2' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/40fc3c94aec04cde3fa9b8.jpg','file3' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/1edb44ca42ad51597678a2.jpg','file4' => '@/var/www/xdrent/data/www/test.biz/upload/lexx/25397178_118034/f9cbf3efd9a00b1f0fbb6b.jpg')); $otvet = curl_exec($ch); curl_close($ch); That sends ok
What is the problem?