[PHP] My first try with GD

Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    Bit offtopic, but: In alot of websites i see i.e <div class/id="wrapper">, is that the name of the div of the whole webpage, e.x that right before the </body> tag the </div> tag of the wrapper is?

  2. #17
    Account Upgraded | Title Enabled! diwo is offline
    MemberRank
    May 2007 Join Date
    322Posts

    Re: [PHP] My first try with GD

    Minefield = x64 testing platform of firefox.

    And grats with first GD. Mine was visitor counter with history like this one

  3. #18
    Gamma Daevius is offline
    MemberRank
    Jun 2007 Join Date
    NetherlandsLocation
    3,252Posts

    Re: [PHP] My first try with GD

    If you assign a class or id to an object, you can give it a style via CSS or use it in JS.

  4. #19
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: [PHP] My first try with GD

    PHP Code:
    <?php
    $image 
    "blabla.gif"// where it creates an image from
    $image imagecreatefromgif($image);
    /*Colors in RGB */
    $white imagecolorallocate$image255255255 ) ;
    $black imagecolorallocate$image00) ;
    $orange imagecolorallocate$image255138) ;
    $pink imagecolorallocate$image255182193 ) ;
    $green imagecolorallocate$image0255) ;
    $red imagecolorallocate$image2550) ;
    $blue imagecolorallocate$image00255 ) ;

    $text $black;
    $x "0";
    $y "0";
    $font imageloadfont("fontname.gdf"); //gdf font

    imagestring$image$font$x$ystripslashes('Line 1'), $text ) ;
        
    $y += 12 ;
    imagestring$image$font$x$ystripslashes('Line 2'), $text ) ;

    header"Content-Type: image/gif" ) ;

    imagepng$image ) ;

    imagedestroy$image ) ;
    ?>
    have fun


    if you dont know the stuff with gdf fonts: then use this
    PHP Code:
    <?php
    $image 
    "blabla.gif"// where it creates an image from
    $image imagecreatefromgif($image);
    /*Colors in RGB */
    $white imagecolorallocate$image255255255 ) ;
    $black imagecolorallocate$image00) ;
    $orange imagecolorallocate$image255138) ;
    $pink imagecolorallocate$image255182193 ) ;
    $green imagecolorallocate$image0255) ;
    $red imagecolorallocate$image2550) ;
    $blue imagecolorallocate$image00255 ) ;

    $text $black;
    $x "0";
    $y "0";
    imagestring$image3$x$ystripslashes('Line 1'), $text ) ;
        
    $y += 12 ;
    imagestring$image3$x$ystripslashes('Line 2'), $text ) ;

    header"Content-Type: image/gif" ) ;

    imagepng$image ) ;

    imagedestroy$image ) ;
    ?>

  5. #20
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    Now u've released that, i wanna ask you:

    Can i copy parts of your lay-out, then edit it etc etc?

  6. #21
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: [PHP] My first try with GD

    Of course you can, i also ripped it somewhere from an free layout site
    brb ill search the zip file


    see attachment
    Attached Files Attached Files

  7. #22
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    Thx =D
    I've added some stuff now:
    Login, Register, User Panel (where you can change password), and some cool thing: when you log in, a cookie is made with ur username, hwne you log out its kept, and when you go to login again, your username will be there already, and if you want to remove it? no problem! just click 'Reset' and it'll remove your name by the magic of PHP =p

    I edited the menu a lil', some colors, etc:

    http://floris-web.no-ip.biz/test/divs/

    --

    Please dont spam full my registering, since its not 100% completely waterproof qua lengths, etc.

    Am going to make an admin panel soon =p

    Gonna do some CS now, to cool down =p

  8. #23
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: [PHP] My first try with GD

    Leuk gedaan

    Nice work


    ----
    btw if somebody need the images: (of the firefox, etc)
    Attached Files Attached Files

  9. #24
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    Bedankt =)

    Thanks =)

    --

    How u get the image in ur web?
    I get an header error =S

  10. #25
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: [PHP] My first try with GD

    what error

  11. #26
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    The regular 'Headers already sent by <file> on line <line>'

  12. #27
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    Re: [PHP] My first try with GD

    1. did you editted the script?
    2. Did you installed gd on your apache server ?

  13. #28
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    1. Yes
    2. Idk.. =p

  14. #29
    Gamma Daevius is offline
    MemberRank
    Jun 2007 Join Date
    NetherlandsLocation
    3,252Posts

    Re: [PHP] My first try with GD

    Quote Originally Posted by EliteGM View Post
    1. Yes
    2. Idk.. =p
    You need to enable it. Its a PHP extension, but normal webservers have it enabled...

  15. #30
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP] My first try with GD

    Im usin xampp, ill see what do after school =p

    EDIT:

    My xampp has GD, im sure.
    Last edited by EliteGM; 27-05-08 at 05:08 PM.



Page 2 of 2 FirstFirst 12

Advertisement