Jest formularz
i chciałbym za pomocą curl oraz tego formularza wgrywać plik na serwer
za pomoc z góry dziękuje
<?php $post_data['wlasciciel'] = 'gienek'; $post_data['bacup'] = '@test.txt'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://xxxxxxxx/index.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); $data = curl_exec($ch); if (curl_errno($ch)) { } ?>