Results 1 to 7 of 7
-
19th Jun 2012, 09:58 PM #1OPMember
PHP CURL Problem with Pixhost.org
Hi people ! Please Help Me! When i try upload image with php + curl on this url
Code:http://www.pixhost.org/cover-upload/
Please help ME!heppinnz Reviewed by heppinnz 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: 5
-
20th Jun 2012, 03:15 AM #2MemberWebsite's:
imdber.org justpaste.mecode code code... show ur code. Sorry to say I cannot read the future nor your mind.
-
20th Jun 2012, 05:30 AM #3OPMembercode code code... show ur code. Sorry to say I cannot read the future nor your mind.PHP Code:
$post = array(
"0[]" => "@$file",
'content_type' => '1',
'tos' => 'on',
'submit' => 'Upload'
);
-
20th Jun 2012, 06:37 AM #4Respected 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.
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.
-
20th Jun 2012, 06:50 AM #5OPMember
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 #6Respected 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.
-
20th Jun 2012, 05:10 PM #7OPMemberYou have wrong post data, Dont just copy the code, compare with yours and learn from it...cheers
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
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...