| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
PHP, PUT and cURL to another server - Answered
From: Julian Bond <julian_bond_at_voidstar.com>
Date: Thu, 8 Jun 2006 12:46:26 +0100
Julian Bond <julian_bond_at_voidstar.com> Thu, 8 Jun 2006 12:15:52
To answer my own question, After thrashing around and reading the php
To PUT a file from PHP
$url = "http://some.server.com/put_script";
$fp = fopen ($localfile, "r");
$http_result = curl_exec($ch);
curl_close($ch);
print $http_code;
Note that some of these parameters are old names. And that
-- Julian Bond E&MSN: julian_bond at voidstar.com M: +44 (0)77 5907 2173 Webmaster: http://www.ecademy.com/ T: +44 (0)192 0412 433 Personal WebLog: http://www.voidstar.com/ skype:julian.bond?chat *** Just Say No To DRM *** _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2006-06-08 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info