Environment image

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

    Environment image

    GumSlone, please help me.
    I was studying your image counter script and made an environment image here.

    I want to add more text under the browser description. How do I do it?

    Here is the code:
    Code:
    <?php
    
    $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
    
    $im = @ImageCreate (45, 45)
    or die;
    $background_color = ImageColorAllocate ($im, 255, 0, 0);
    $text_color = ImageColorAllocate ($im, 0, 255, 255);
    ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);
    
    header(&#39;Content-Type: image/gif&#39;);
    Imagegif ($im);
    
    ?>
    Would you be willing to share your environment image script?

    #2
    how do i put my site name on that ????
    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


      #3
      how do i put my site name on that ????[/b]
      store your sitename in a variable and
      draw it on an image using the GD library.
      To test wheater u have it installed...
      use
      Code:
      <?
      fuction test()
      {
      $a=gdlib();
      if(!isset($a))
      {
      $reply=0;
      }
      else
      {
      $reply=1;
      }
      return $reply;
      }
      $b=test();
      if($b=1)
      {
      echo "GD is installed";
      }
      else
      {
      echo "GD library is not installed , try php.net and download it!";
      }
      ?>

      Comment


        #4
        store your sitename in a variable and
        draw it on an image using the GD library.
        To test wheater u have it installed...
        use
        Code:
        <?
        fuction test()
        {
        $a=gdlib();
        if(!isset($a))
        {
        $reply=0;
        }
        else
        {
        $reply=1;
        }
        return $reply;
        }
        $b=test();
        if($b=1)
        {
        echo "GD is installed";
        }
        else
        {
        echo "GD library is not installed , try php.net and download it!";
        }
        ?>
        [/b]



        that dont work for me can you make one ??? please ?? with ip and phones and my site on it like

        opera
        200.22.33.1
        topsite.6te.net ??
        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


          #5
          that dont work for me can you make one ??? please ?? with ip and phones and my site on it like

          opera
          200.22.33.1
          topsite.6te.net ??[/b]
          You can draw shapes and text using the GD.
          Code:
          <?php 
                  header ("Content-type: image/png"); 
                  $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); 
                  $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); 
                  $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); 
                  ImageString ($img_handle, 31, 5, 5,  "My first Program with GD", $txt_color); 
                  ImagePng ($img_handle); 
              ?>
          this will generate a black image with Opera(ur browser) IP topsite.6te.net on a dum bulk image.
          But u can decorate...modify...edit it as ya want.

          Comment


            #6
            i say A BIG THANKS
            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
              Add more text ? Does it don&#39;t do like this:
              Code:
              <?php
              
              $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
              
              $im = @ImageCreate (45, 45)
              or die;
              $background_color = ImageColorAllocate ($im, 255, 0, 0);
              $text_color = ImageColorAllocate ($im, 0, 255, 255);
              ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);
              ImageString ($im, 3, 8, 1, "more text", $text_color);
              ImageString ($im, 3, 12, 1, "again", $text_color);
              
              header(&#39;Content-Type: image/gif&#39;);
              Imagegif ($im);
              
              ?>

              Comment


                #8
                How can i put this to my wap???

                Comment


                  #9
                  How can i put this to my wap???[/b]
                  with php and by having "GD_PHP.dll".

                  You can create a PHP file ... add this code save it as "filename.php"....
                  create a wml file... place [img]filename.php[/img].

                  Comment


                    #10
                    Add more text ? Does it don&#39;t do like this:
                    Code:
                    <?php
                    
                    $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
                    
                    $im = @ImageCreate (45, 45)
                    or die;
                    $background_color = ImageColorAllocate ($im, 255, 0, 0);
                    $text_color = ImageColorAllocate ($im, 0, 255, 255);
                    ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);
                    ImageString ($im, 3, 8, 1, "more text", $text_color);
                    ImageString ($im, 3, 12, 1, "again", $text_color);
                    
                    header(&#39;Content-Type: image/gif&#39;);
                    Imagegif ($im);
                    
                    ?>
                    [/b]


                    pmpl ok smart ass you got me dam i did not think that lol cheers bro
                    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
                      just look at that lol did a good job



                      look at this


                      Code:
                      <?php
                      
                      $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
                      
                      $im = @ImageCreate ( 80, 50)
                      or die;
                      $background_color = ImageColorAllocate ($im, 0, 295, 255);
                      $text_1 = ImageColorAllocate ($im, 255, 0, 0);
                      $text_2 = ImageColorAllocate ($im, 6, 475, 289);
                      $text_3 = ImageColorAllocate ($im, 4, 225, 199);
                      $text_4 = ImageColorAllocate ($im, 655, 0, 0);
                      $text_5 = ImageColorAllocate ($im, 2, 255, 255);
                      ImageString ($im, 0, 3, 1, "$browser[0]", $text_1);
                      ImageString ($im, 0, 3, 10, "$REMOTE_ADDR", $text_2);
                      ImageString ($im, 0, 3, 20, "".date("H:i")."", $text_3);
                      ImageString ($im, 0, 3, 29, "".date("D d M y - ")."", $text_4);
                      ImageString ($im, 0, 3, 39, "topsite.6te.net", $text_5);
                      
                      header(&#39;Content-Type: image/gif&#39;);
                      Imagegif ($im);
                      
                      ?>
                      if any one knows the color change can they share it please thanks
                      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


                        #12
                        Your link don&#39;t work
                        Yes, im good

                        Comment


                          #13
                          Thanks for that bro!

                          Comment


                            #14
                            Thanks...

                            Frnds...

                            4

                            This i Like it very much.

                            Comment


                              #15
                              Now u can have ur local time.
                              Code:
                              <?php
                              $TimeZone="8"; ////Change the TimeZone accordingly!
                              $New_Time = time() + ($TimeZone * 60 * 60);
                              $time=date("H:i",$New_Time);
                              $date=date("D d M y",$New_Time);
                              $browser = explode (&#39;/&#39;, $HTTP_USER_AGENT);
                              
                              $im = @ImageCreate ( 80, 50)
                              or die;
                              $background_color = ImageColorAllocate ($im, 0, 295, 255);
                              $text_1 = ImageColorAllocate ($im, 255, 0, 0);
                              $text_2 = ImageColorAllocate ($im, 6, 475, 289);
                              $text_3 = ImageColorAllocate ($im, 4, 225, 199);
                              $text_4 = ImageColorAllocate ($im, 655, 0, 0);
                              $text_5 = ImageColorAllocate ($im, 2, 255, 255);
                              ImageString ($im, 0, 3, 1, "$browser[0]", $text_1);
                              ImageString ($im, 0, 3, 10, "$REMOTE_ADDR", $text_2);
                              ImageString ($im, 0, 3, 20, "$time", $text_3);
                              ImageString ($im, 0, 3, 29, "$date", $text_4);
                              ImageString ($im, 0, 3, 39, "LandOfWap.net", $text_5);
                              
                              header(&#39;Content-Type: image/gif&#39;);
                              Imagegif ($im);
                              
                              ?>

                              Comment

                              Working...
                              X