Joined November 2013
·

Andrea

caracas
·
·

Posted to How to send files via cURL in PHP over 1 year ago

Nothing, i guess the website is the problem =(. Thank you

Posted to How to send files via cURL in PHP over 1 year ago

hi, im trying this :

$ch = curlinit();
curl
setopt($ch, CURLOPTRETURNTRANSFER, 1);
$data = array('name' => 'Foo', 'file' => '@my-event-name.ics');
curl
setopt($ch, CURLOPTURL, 'http://icalx.com/public/zeroan/');
curl
setopt($ch, CURLOPTPOST, 1);
curl
setopt($ch,CURLOPTUSERPWD,'zeroan:pass');
curl
setopt($ch, CURLOPTPOSTFIELDS, $data);
$data2=curl
exec($ch);

but its not uploading =( can you help me?

Achievements
1 Karma
0 Total ProTip Views