Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts

    Remote Upload Help!

    Heyya all,

    my remote code isn't working, filename errors, here's my code in uploader.php
    PHP Code:
    if (isset($_POST['remoteimage']) && !empty($_POST['remoteimage'])) {
        
    $image_urls explode('\n'$_POST['remoteimage']);
        
        foreach(
    $image_urls AS $sURL)
        {
            
    $sURL trim($sURL);
            if (!empty(
    $sURL)) {
                
    performUploadandCreateThumb($image_urls$aConfig);
            }
        }
    // < attempting a remote upload and all checks. 
    and here's my func:
    PHP Code:
        function performUploadandCreateThumb($files, array $aConfig) {
            if(
    $ext checkitsaValidImage($files$aConfig)) {
                
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                
    if(loggedin) {
                    
    $album_id $_POST['album_id']; 
                    if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) {
                        
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                        
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                    }
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$album_id .'/'$new_name);
                    
    // Insert to DB
                    
    insertDBinfo($files$aConfig$new_name);
                } else {
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$new_name);
                }
                
    $url $filePath;
                
    $thumb $thumbfilePath;
                
    $sToDir $saveTo;
                
                
    // Create the thumbnail
                
    if(is_numeric($_POST['maxdimensions'])) {
                    
    create_thumb($imageRetrieve$new_name$sToDir);
                }
                if(isset(
    $_POST['email'])) {
                    
    sendImageToEmail($url, $$thumb$aConfig);
                }
                
    showImageInfo($imageRetrieve);
                
                include 
    THEME_DIR .'uploaded.php';
            } else {
                if(
    loggedin()) {
                    if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) {
                        
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                        
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                    }
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                    
    // Upload File
                    
    copy($files$aConfig['upload_destination'] .'/'$album_id $new_name);
                } else {
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/';
                    
    // Upload image
                    
    copy($files$aConfig['upload_destination'] .'/'$new_name);
                }
                
    $url $filePath;
                
    $thumb $thumbfilePath;
                
    $sToDir $saveTo;
                
                
    // Create the thumbnail
                
    if(is_numeric($_POST['maxdimensions'])) {
                    
    create_thumb($imageRetrieve$new_name$sToDir);
                }
                if(isset(
    $_POST['email'])) {
                    
    sendImageToEmail($url, $$thumb$aConfig);
                }
                
    showImageInfo($imageRetrieve);
                
                include 
    THEME_DIR .'uploaded.php';
                
                
    unlink($files);
            }
        } 
    can any1 help, thx

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    What is the error and on what line?

  • #3
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    here's the main error:
    Code:
    Warning: copy() [function.copy]: Filename cannot be empty in /home/sonicimg/public_html/includes/functions.php on line 652

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Too bad it doesn't specify which is no good.
    Given what you have here, so long as these indentations are correct (I don't want to count braces this morning), the problem is $new_name and $album_id are null.

  • #5
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,474
    Thanks
    63
    Thanked 537 Times in 524 Posts
    Quote Originally Posted by Fou-Lu View Post
    so long as these indentations are correct (I don't want to count braces this morning)
    Thats why I've stayed out of this.

    All I will say to you Chris is that the style you use for your braces is not a good one and its not easy to follow either.

    See the coding styles link in my signature for a good demonstration as to why its better to put the braces on seperate lines and matching up. It will make your life a lot easier.
    I can't really think of anything to write here now...

  • #6
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    ok this func is modifie,,, still get error
    PHP Code:
        function performUploadandCreateThumb($files, array $aConfig) {
            if(
    $ext checkitsaValidImage($files$aConfig)) 
            {
                
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                
    if(loggedin
                {
                    
    $album_id $_POST['album_id']; 
                    if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) 
                    {
                        
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                        
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                    }
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$album_id .'/'$new_name);
                    
    // Insert to DB
                    
    insertDBinfo($files$aConfig$new_name);
                } 
                else 
                {
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$new_name);
                }
                
    $url $filePath;
                
    $thumb $thumbfilePath;
                
    $sToDir $saveTo;
            } 
            else 
            {
                if(
    $ext checkitsaValidImage($files$aConfig)) 
                {
                    
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                    
    if(loggedin()) 
                    {
                        if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) 
                        {
                            
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                            
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                        }
                        
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                        
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                        
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                        
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                        
    // Upload File
                        
    copy($files$aConfig['upload_destination'] .'/'$album_id $new_name);
                    } 
                    else 
                    {
                        
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                        
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                        
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                        
    $saveTo $aConfig['thumb_destination'] .'/';
                        
    // Upload image
                        
    copy($files$aConfig['upload_destination'] .'/'$new_name);
                    }
                    
    $url $filePath;
                    
    $thumb $thumbfilePath;
                    
    $sToDir $saveTo;
                    
                    
    unlink($files);
                }
            }
            
                
    // Create the thumbnail
                
    if(is_numeric($_POST['maxdimensions'])) 
                {
                    
    create_thumb($imageRetrieve$new_name$sToDir);
                }
                if(isset(
    $_POST['email'])) 
                {
                    
    sendImageToEmail($url, $$thumb$aConfig);
                }
                
    showImageInfo($imageRetrieve);
                
                include 
    THEME_DIR .'uploaded.php';
        } 

  • #7
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Half of my previous comment still stands. Where is $album_id defined within that else branch?

  • #8
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    ah yea, modified:
    PHP Code:
        function performUploadandCreateThumb($files, array $aConfig) {
            if(
    $ext checkitsaValidImage($files$aConfig)) 
            {
                
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                
    if(loggedin
                {
                    
    $album_id $_POST['album_id']; 
                    if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) 
                    {
                        
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                        
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                    }
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$album_id .'/'$new_name);
                    
    // Insert to DB
                    
    insertDBinfo($files$aConfig$new_name);
                } 
                else 
                {
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$new_name);
                }
                
    $url $filePath;
                
    $thumb $thumbfilePath;
                
    $sToDir $saveTo;
            } 
            else 
            {
                if(
    $ext checkitsaValidImage($files$aConfig)) 
                {
                    
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                    
    if(loggedin()) 
                    {
                        
    $album_id $_POST['album_id']; 
                        if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) 
                        {
                            
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                            
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                        }
                        
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                        
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                        
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                        
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                        
    // Upload File
                        
    copy($files$aConfig['upload_destination'] .'/'$album_id $new_name);
                    } 
                    else 
                    {
                        
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                        
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                        
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                        
    $saveTo $aConfig['thumb_destination'] .'/';
                        
    // Upload image
                        
    copy($files$aConfig['upload_destination'] .'/'$new_name);
                    }
                    
    $url $filePath;
                    
    $thumb $thumbfilePath;
                    
    $sToDir $saveTo;
                    
                    
    unlink($files);
                }
            }
            
                
    // Create the thumbnail
                
    if(is_numeric($_POST['maxdimensions'])) 
                {
                    
    create_thumb($imageRetrieve$new_name$sToDir);
                }
                if(isset(
    $_POST['email'])) 
                {
                    
    sendImageToEmail($url, $$thumb$aConfig);
                }
                
    showImageInfo($imageRetrieve);
                
                include 
    THEME_DIR .'uploaded.php';
        } 
    still im getting:


    Warning: getimagesize() [function.getimagesize]: Filename cannot be empty

  • #9
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    There is no call in here to getimagesize. Your error is now elsewhere. The error will include the file and approximate line number.

  • #10
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    hi, im getting all these:
    PHP Code:
    Warninggetimagesize() [function.getimagesize]: Filename cannot be empty in /home/sonicimg/public_html/includes/functions.php on line 345

    Warning
    Division by zero in /home/sonicimg/public_html/includes/functions.php on line 357

    Warning
    imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/sonicimg/public_html/includes/functions.php on line 367

    Warning
    imagecopyresampled() expects parameter 1 to be resourceboolean given in /home/sonicimg/public_html/includes/functions.php on line 370

    Warning
    imagejpeg() expects parameter 1 to be resourceboolean given in /home/sonicimg/public_html/includes/functions.php on line 373

    Warning
    imagedestroy() expects parameter 1 to be resourceboolean given in /home/sonicimg/public_html/includes/functions.php on line 376

    Warning
    imagedestroy() expects parameter 1 to be resourcenull given in /home/sonicimg/public_html/includes/functions.php on line 377

    Warning
    getimagesize() [function.getimagesize]: Filename cannot be empty in /home/sonicimg/public_html/includes/functions.php on line 397 
    because the file aint even saving locally on my server, i've checked....

    any idea.............

  • #11
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Lets take a look at your current code then.
    There is a section here that makes no sense:
    PHP Code:
    if($ext checkitsaValidImage($files$aConfig)) 
    {
    }
    else
    {
        if(
    $ext checkitsaValidImage($files$aConfig)) 
        {
        }
        
    // nothing here.

    It cannot be true and false. If it doesn't pass the first if check, then it will do nothing in the else since you request the same function to verify again. There is no else processing for this nested branch.

  • #12
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    okk ive removed that:
    PHP Code:
        function performUploadandCreateThumb($files, array $aConfig) {
            if(
    $ext checkitsaValidImage($files$aConfig)) 
            {
                
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                
    if(loggedin
                {
                    
    $album_id $_POST['album_id']; 
                    if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) 
                    {
                        
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                        
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                    }
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$album_id .'/'$new_name);
                    
    // Insert to DB
                    
    insertDBinfo($files$aConfig$new_name);
                } 
                else 
                {
                    
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                    
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                    
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                    
    $saveTo $aConfig['thumb_destination'] .'/';
                    
    // Upload image
                    
    move_uploaded_file($files$aConfig['upload_destination'] .'/'$new_name);
                }
                
    $url $filePath;
                
    $thumb $thumbfilePath;
                
    $sToDir $saveTo;
            } 
            else 
            {
                    
    $new_name generateUniqueFilename() . $ext// we will give an unique name.
                    
    if(loggedin()) 
                    {
                        
    $album_id $_POST['album_id']; 
                        if(!
    is_dir($aConfig['upload_destination'] .'/'$album_id) && !is_dir($aConfig['thumb_destination'] .'/'$album_id)) 
                        {
                            
    mkdir($aConfig['upload_destination'] .'/'$album_id0777);
                            
    mkdir($aConfig['thumb_destination'] .'/'$album_id0777);
                        }
                        
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                        
    $imageRetrieve $aConfig['upload_destination'] .'/'$album_id .'/'$new_name;
                        
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/'$album_id .'/thumb_'$new_name;
                        
    $saveTo $aConfig['thumb_destination'] .'/'$album_id .'/';
                        
    // Upload File
                        
    copy($files$aConfig['upload_destination'] .'/'$album_id $new_name);
                    } 
                    else 
                    {
                        
    $filePath $aConfig['site_address'] .'/'$aConfig['upload_destination'] .'/'$new_name;
                        
    $imageRetrieve $aConfig['upload_destination'] .'/'$new_name;
                        
    $thumbfilePath $aConfig['site_address'] .'/'$aConfig['thumb_destination'] .'/thumb'$new_name;
                        
    $saveTo $aConfig['thumb_destination'] .'/';
                        
    // Upload image
                        
    copy($files$aConfig['upload_destination'] .'/'$new_name);
                    }
                    
    $url $filePath;
                    
    $thumb $thumbfilePath;
                    
    $sToDir $saveTo;
                    
                    
    unlink($files);
                }
            
                
    // Create the thumbnail
                
    if(is_numeric($_POST['maxdimensions'])) 
                {
                    
    create_thumb($imageRetrieve$new_name$sToDir);
                }
                if(isset(
    $_POST['email'])) 
                {
                    
    sendImageToEmail($url, $$thumb$aConfig);
                }
                
    showImageInfo($imageRetrieve);
                
                include 
    THEME_DIR .'uploaded.php';
        } 
    the file is stillnot being saved.

  • #13
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    What is your current error? Is it from the copy? copy itself should work with http wrappers as it relies on fopen, but the ini specification for allow_url_fopen has to be enabled for it to work.

    Also, in that else the $ext will be false, null or equivalent. The variable will be set, but will evaluate to nothing. Whilst this is not a problem as the extension isn't required on a file, it may change handling if you expect an extension to exist.

  • #14
    Regular Coder
    Join Date
    May 2011
    Posts
    303
    Thanks
    29
    Thanked 0 Times in 0 Posts
    here's all my errors:
    PHP Code:
    Warningcopy() [function.copy]: Filename cannot be empty in /home/sonicimg/public_html/includes/functions.php on line 654

    Warning
    unlink() [function.unlink]: No such file or directory in /home/sonicimg/public_html/includes/functions.php on line 660

    Warning
    getimagesize(i293/q31yo) [function.getimagesize]: failed to open streamNo such file or directory in /home/sonicimg/public_html/includes/functions.php on line 345

    Warning
    Division by zero in /home/sonicimg/public_html/includes/functions.php on line 357

    Warning
    imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/sonicimg/public_html/includes/functions.php on line 367

    Warning
    imagecopyresampled() expects parameter 1 to be resourceboolean given in /home/sonicimg/public_html/includes/functions.php on line 370

    Warning
    imagejpeg() expects parameter 1 to be resourceboolean given in /home/sonicimg/public_html/includes/functions.php on line 373

    Warning
    imagedestroy() expects parameter 1 to be resourceboolean given in /home/sonicimg/public_html/includes/functions.php on line 376

    Warning
    imagedestroy() expects parameter 1 to be resourcenull given in /home/sonicimg/public_html/includes/functions.php on line 377

    Warning
    getimagesize(i293/q31yo) [function.getimagesize]: failed to open streamNo such file or directory in /home/sonicimg/public_html/includes/functions.php on line 397

    Warning
    filesize() [function.filesize]: stat failed for i293/q31yo in /home/sonicimg/public_html/includes/functions.php on line 398

    Warning
    Division by zero in /home/sonicimg/public_html/includes/functions.php on line 431 
    from there, it's grabbing a filename; no extension but not saving.

  • #15
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Print this before the copy's and post the results:
    PHP Code:
    printf('Copy %s to %s'$files$aConfig['upload_destination'] .'/'$album_id $new_name); 
    What is this result?

  • Users who have thanked Fou-Lu for this post:

    Chris-2k (08-15-2012)


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •