Results 1 to 7 of 7
Hybrid View
-
20th Jun 2012, 06:37 AM #1Respected Developer
as Apathetic said post your complete code here, what have you tried? what did not work? there is no detail except a post array. Help us to help you, give us the detail that matters about what's going on.
mRAza Reviewed by mRAza on . PHP CURL Problem with Pixhost.org Hi people ! Please Help Me! When i try upload image with php + curl on this url http://www.pixhost.org/cover-upload/ I`m everytime get one answer "Picture must be higher than 350px.". Please help ME! Rating: 5Bots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
20th Jun 2012, 06:50 AM #2OPMember
I am try upload image with this code:
PHP Code:$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://www.pixhost.org/cover-upload/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CONNECTTIMEOUT => 30,
CURLOPT_TIMEOUT => 30,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => array(
"0[]" => "@$file",
'content_type' => '1',
'tos' => 'on',
'submit' => 'Upload'
));
$return = curl_exec($curl);
curl_close($curl);
Thank you for help!
-
20th Jun 2012, 07:01 AM #3Respected DeveloperPHP Code:
// image file
$file = dirname(__FILE__)."/Chrysanthemum.jpg";
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://www.pixhost.org/cover-upload/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_REFERER => 'http://www.pixhost.org/cover-upload/',
CURLOPT_CONNECTTIMEOUT => 30,
CURLOPT_TIMEOUT => 30,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => array(
'0"; filename="'.basename($file).'"' => "@".$file,
'content_type' => '1',
'tos' => 'on',
'submit' => 'Upload'
)));
$return = curl_exec($curl);
curl_close($curl);
echo $return;
Bots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Help] PHP Curl Lumfile.com Problem
By heppinnz in forum Web Development AreaReplies: 4Last Post: 23rd Jun 2012, 02:21 PM -
[Help] PHP Curl Uploader to RapidShare Problem
By heppinnz in forum Web Development AreaReplies: 2Last Post: 29th Nov 2011, 06:28 AM -
curl problem
By cyberz in forum Technical Help Desk SupportReplies: 5Last Post: 6th Aug 2010, 09:05 PM -
Problem using CURL
By black0xio in forum Web Development AreaReplies: 10Last Post: 5th Aug 2010, 12:21 PM -
cURL or PHP Problem.
By deelow66 in forum Technical and Security TutorialsReplies: 4Last Post: 2nd May 2010, 01:57 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...