Results 1 to 1 of 1

Thread: Quick Help

  1. #1
    Join Date
    Mar 2006
    Location
    C:\\Program Files
    Posts
    2,592
    Tokens
    0

    Latest Awards:

    Default Quick Help

    Hey

    Ive got 'The Grand Tutorial' script and im having trouble with the upload images when adding a tutorial to site.

    The code I have is:

    PHP Code:
    function imgsizemod($image ''$text ''){
        
            if(
    $text == 'jpg' || $text == 'jpeg'){
                
    $img imagecreatefromjpeg($image);
            } elseif(
    $ext == 'png'  || $text =='png'){
                
    $img imagecreatefrompng($image);
            } else {
                return 
    basename($image);
            }
            
            
    $xw imagesx($img);
            
    $yw imagesy($img); 
    And for some reason, that isnt working. +REP for all help
    Thanks
    Last edited by Liberation; 21-01-2007 at 08:24 PM.


Posting Permissions

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