cURL / Mailing Lists / curl-and-php / Single Mail


Using a multipart/form-post file upload form - from server to web form

From: Todd Dickerson <>
Date: Thu, 30 Aug 2007 09:36:17 -0400

I'm attempting to use cURL to submit a file thats stored on the local server
where curl is being executed and send it to a remote form.

Using this example:

I've been essentially setting $sampfile =
I'm getting: Array ( [file1] =>
@/home/themeguy/public_html/orgwpthemes/ ) malformed

Should this script work in this situation?


Received on 2007-08-30