Activity Stream
48,167 MEMBERS
6775 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member

    Default 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/
    I`m everytime get one answer "Picture must be higher than 350px.".

    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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    imdber.org justpaste.me
    code code code... show ur code. Sorry to say I cannot read the future nor your mind.

  4.     
    #3
    Member
    code 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'
            
    ); 

  5.     
    #4
    Respected 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.

  6.     
    #5
    Member
    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); 
    But everytime get one answer "Picture must be higher than 350px.".


    Thank you for help!

  7.     
    #6
    Respected Developer
    PHP 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
    You have wrong post data, Dont just copy the code, compare with yours and learn from it...cheers
    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.

  8.     
    #7
    Member
    You have wrong post data, Dont just copy the code, compare with yours and learn from it...cheers
    Thank you very much, everything work fine...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Help] PHP Curl Lumfile.com Problem
    By heppinnz in forum Web Development Area
    Replies: 4
    Last Post: 23rd Jun 2012, 02:21 PM
  2. [Help] PHP Curl Uploader to RapidShare Problem
    By heppinnz in forum Web Development Area
    Replies: 2
    Last Post: 29th Nov 2011, 06:28 AM
  3. curl problem
    By cyberz in forum Technical Help Desk Support
    Replies: 5
    Last Post: 6th Aug 2010, 09:05 PM
  4. Problem using CURL
    By black0xio in forum Web Development Area
    Replies: 10
    Last Post: 5th Aug 2010, 12:21 PM
  5. cURL or PHP Problem.
    By deelow66 in forum Technical and Security Tutorials
    Replies: 4
    Last Post: 2nd May 2010, 01:57 AM

Tags for this Thread

BE SOCIAL