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

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1.     
    #11
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    ok this works:

    PHP Code: 
            $fulluploadlPath = ($uploadDir '/' $name); 
            echo 
    $fulluploadlPath;
    exit(); 
    it shows the dir: images/18297627.png which is ok...............

    notice $fulluploadlPath = ($uploadDir . '/' . $name); i added (), when i remove the echo i get;

    The connection to the server was reset while the page was loading.

  2.   Sponsored Links

  3.     
    #12
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    ok the above code is use less and dont work, 4 me anyway...

    ive re written it, here we go:

    PHP Code: 
                   include"imagecfg.php";

            
    //Make a 90x90px thumbnail......
            
    $fileURL = ($uploadDir '/' $name);
            
    // echo $fileURL;
            
            
    if ($type == "image/pjpeg" || $type == "image/jpeg") { $newThumbImg imagecreatefromjpeg($fileURL); }
            
            if (
    $type == "image/x-png" || $type == "image/png") { $newThumbImg imagecreatefrompng($fileURL); }
            
            if (
    $type == "image/gif") { $newThumbImg imagecreatefromgif($fileURL); }
            
            
    $ratio $width $height// calculate the ratio

            
    if ($ratio ) {
            
                
    $newW $thumbPixels;
                
    $newH $thumbPixels $ratio;
        } else {
                
                
    $newH $thumbPixels;
                
    $newW $thumbPixels $ratio;
        }
        
        
    //function for resize image.

        
    if (function_exists(imagecreatetruecolor)){

                
    $newImg imagecreatetruecolor($newW$newH);
        } else {

                die(
    "Error: Please make sure you have GD library ver 2+");
        }

        
    //the resizing is going on here!

        
    imagecopyresized($newImg$newThumbImg0000$newW$newH$width$height);

        
    //finally, save the image

    [B]    ImageJpeg ($newImg $thumbDir "$newThumbImg");[/B]

        
    ImageDestroy ($newImg);
        
    ImageDestroy ($newThumbImg); 
    ive made it bold where im getting a parse error, can u help?

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Resize Image
    By cyb3r in forum Graphics Area
    Replies: 1
    Last Post: 15th Sep 2011, 02:50 PM
  2. Looking for some new Image resize mod
    By Spartan in forum phpBB
    Replies: 1
    Last Post: 27th May 2011, 08:58 AM
  3. Image resize in DLE
    By John in forum Webmaster Discussion
    Replies: 1
    Last Post: 30th Dec 2010, 01:31 AM
  4. PHP Resize?
    By bxflow in forum Web Application/Script Support
    Replies: 5
    Last Post: 7th Sep 2010, 03:36 PM
  5. how to resize image in DL
    By loverhaker in forum Forum and DDL Discussion
    Replies: 0
    Last Post: 28th Aug 2010, 01:48 AM

Tags for this Thread

BE SOCIAL