I wish to issue the following curl request using php-curl:
curl "http://www.example.com/" -F "file=@foo.ext"
How do I need to set this up in PHP (using curl_init, _setopt, etc.), assuming foo.ext
lives on the machine from which I'm issuing the request?