i want to shorten the src

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    i want to shorten the src

    i used

    Code:
    echo "<img src=\"http://coding-talk.com/images/phpThumb.php?src=$avlink&wp=100&hp=100&wl=100&hl=100\" alt=\"avatar\"/>";
    how can i remove this code? or can i remove this code?

    Code:
    &wp=100&hp=100&wl=100&hl=100
    or

    how can make this URL

    http://coding-talk.com/images/phpThumb.php?src=$avlink&wp=100&hp=100&wl=100&hl=1 00
    to
    i want to change phpThumb.php to kei_ki7.php <- is this legal?
    Last edited by kei_ki7; 15.11.09, 21:27.
    Did I help you?
    You can help me too
    Your donations will help me finance my studies.

    #2
    u can rename the file tho what ever u want it to be so it will work
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    Comment


      #3
      Save as kei_ki7.php

      Look for 50 and change it how you like it

      w_i = width
      h_i = height

      Code:
      <?php 
      $taille = getimagesize("$_GET[src]");  
      $h_i = $taille[1];  
      $w_i = $taille[0];  
      if($h_i >50)  
      {  
      $convert=50/$h_i;  
      $h_i=50;  
      $w_i=ceil($w_i*$convert);  
      }  
      if($w_i >50)  
      {  
      $convert=50/$w_i;  
      $w_i=50;  
      $h_i=ceil($h_i*$convert);  
      };  
      
      $largeur = "$w_i"; 
      $hauteur ="$h_i"; 
      
      header("Content-Type: image/jpeg"); 
      list($width, $height, $type, $attr) = getimagesize("$_GET[src]"); 
      
      if($type == "1") 
      { 
      $img_in = imagecreatefromgif($_GET[src]); 
      } 
      
      if($type == "2") 
      { 
      $img_in = imagecreatefromjpeg($_GET[src]); 
      } 
      
      if($type == "3") 
      { 
      $img_in = imagecreatefrompng($_GET[src]); 
      } 
      
      $img_out = imagecreatetruecolor($largeur, $hauteur); 
      imagecopyresampled($img_out, $img_in, 0, 0, 0, 0, imagesx($img_out), imagesy($img_out), imagesx($img_in), imagesy($img_in)); 
      $t = imagejpeg($img_out); 
      echo $t; 
      ?>
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        Originally posted by riderz View Post
        u can rename the file tho what ever u want it to be so it will work
        what i mean if this is legal? i dont want to jailed LoL

        Originally posted by subzero View Post
        Save as kei_ki7.php

        Look for 50 and change it how you like it

        w_i = width
        h_i = height

        Code:
        <?php 
        $taille = getimagesize("$_GET[src]");  
        $h_i = $taille[1];  
        $w_i = $taille[0];  
        if($h_i >50)  
        {  
        $convert=50/$h_i;  
        $h_i=50;  
        $w_i=ceil($w_i*$convert);  
        }  
        if($w_i >50)  
        {  
        $convert=50/$w_i;  
        $w_i=50;  
        $h_i=ceil($h_i*$convert);  
        };  
        
        $largeur = "$w_i"; 
        $hauteur ="$h_i"; 
        
        header("Content-Type: image/jpeg"); 
        list($width, $height, $type, $attr) = getimagesize("$_GET[src]"); 
        
        if($type == "1") 
        { 
        $img_in = imagecreatefromgif($_GET[src]); 
        } 
        
        if($type == "2") 
        { 
        $img_in = imagecreatefromjpeg($_GET[src]); 
        } 
        
        if($type == "3") 
        { 
        $img_in = imagecreatefrompng($_GET[src]); 
        } 
        
        $img_out = imagecreatetruecolor($largeur, $hauteur); 
        imagecopyresampled($img_out, $img_in, 0, 0, 0, 0, imagesx($img_out), imagesy($img_out), imagesx($img_in), imagesy($img_in)); 
        $t = imagejpeg($img_out); 
        echo $t; 
        ?>
        thanks for this i will try this
        Did I help you?
        You can help me too
        Your donations will help me finance my studies.

        Comment


          #5
          do i need to have a function for getimagesize?

          if yes, i dont have it in my core.
          Did I help you?
          You can help me too
          Your donations will help me finance my studies.

          Comment


            #6
            Nah its only file i use and works fine for me
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7


              You can see thou this
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                test this



                now try

                Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                Visit: WapMasterz Coming Back Soon!
                _______
                SCRIPTS FOR SALE BY SUBZERO
                Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                _______
                Info & Tips
                php.net
                w3schools.com

                Comment


                  #9
                  i cant make my usage work, i tried kei_ki7.php?src= and kei_ki7.php?pic=

                  wanna try this?
                  Attached Files
                  Did I help you?
                  You can help me too
                  Your donations will help me finance my studies.

                  Comment


                    #10
                    What error you getting with mine ?
                    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                    Visit: WapMasterz Coming Back Soon!
                    _______
                    SCRIPTS FOR SALE BY SUBZERO
                    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                    _______
                    Info & Tips
                    php.net
                    w3schools.com

                    Comment


                      #11
                      i just cant see the image, i use kei_ki7.php?src=http://imageurl and kei_ki7.php?pic=http://imageurl

                      and no pic appeared
                      Did I help you?
                      You can help me too
                      Your donations will help me finance my studies.

                      Comment


                        #12
                        show me ?


                        inbox me with the image resize
                        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                        Visit: WapMasterz Coming Back Soon!
                        _______
                        SCRIPTS FOR SALE BY SUBZERO
                        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                        _______
                        Info & Tips
                        php.net
                        w3schools.com

                        Comment


                          #13
                          lol look at my pics i resize i also added copyrights lmao
                          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                          Visit: WapMasterz Coming Back Soon!
                          _______
                          SCRIPTS FOR SALE BY SUBZERO
                          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                          _______
                          Info & Tips
                          php.net
                          w3schools.com

                          Comment


                            #14
                            Now there images you can see

                            Before and after
                            Attached Files
                            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                            Visit: WapMasterz Coming Back Soon!
                            _______
                            SCRIPTS FOR SALE BY SUBZERO
                            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                            _______
                            Info & Tips
                            php.net
                            w3schools.com

                            Comment


                              #15
                              Originally posted by subzero View Post
                              lol look at my pics i resize i also added copyrights lmao

                              can i get a code to add watermark in same file ..??

                              Comment

                              Working...
                              X