Stas Malyshev <smalys...@sugarcrm.com> wrote:

>Hi!
>
>I'm thinking maybe the best solution is to have a new class - say,
>CurlFile - and do this:
>
>$file = new CurlFile("myface.png", "image/png");
>curl_setopt($ch, CURLOPT_POSTFIELDS, array("foo" => "bar", "picture" =>
>$file);

What I wonder about in this thread: If we struggle here why not take the full 
step and abstract curl details comletely away and provide something like 
pecl/http by default instead?

johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to