Image function?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wjz@wirehub.nl

    #1

    Image function?

    Hi all,

    Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
    funtions to create and manipulate GIF and JPEG images? Is this
    functionallity available in PHP and do i need to change setting or do i
    need to install aditional dll (where can i get them) and do i need to
    change the php.ini?

    Thanx!
    WJ

  • tihu

    #2
    Re: Image function?


    wjz@wirehub.nl wrote:[color=blue]
    > Hi all,
    >
    > Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
    > funtions to create and manipulate GIF and JPEG images? Is this
    > functionallity available in PHP and do i need to change setting or do i
    > need to install aditional dll (where can i get them) and do i need to
    > change the php.ini?
    >
    > Thanx!
    > WJ[/color]

    Use the gd library



    The manual says its bundled with php 4.4.2 on windows, don't think you
    will need to change anything.

    Seeya

    Tim

    Comment

    • Rik

      #3
      Re: Image function?

      wjz@wirehub.nl wrote:[color=blue]
      > Hi all,
      >
      > Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
      > funtions to create and manipulate GIF and JPEG images? Is this
      > functionallity available in PHP and do i need to change setting or do
      > i need to install aditional dll (where can i get them) and do i need
      > to change the php.ini?[/color]

      GD, normally already present, activate by removing ";" before
      extension=php_g d2.dll in your php.ini file.


      Grtz,
      --
      Rik Wasmus


      Comment

      • WJ Zeeuwen

        #4
        Re: Image function?

        When i look in C;/php/dlls i see the file gds32.dll I suppose that this
        is the image library? In which file do i have to remove the ;? I only
        see php.ini-dist and php.ini-recommended, no php.ini...

        Thanx!,
        WJ


        [color=blue]
        > wjz@wirehub.nl wrote:[color=green]
        >> Hi all,
        >>
        >> Im using PHP 4.4.2 on Windows with apache. Can anyone tell how to use
        >> funtions to create and manipulate GIF and JPEG images? Is this
        >> functionallity available in PHP and do i need to change setting or do
        >> i need to install aditional dll (where can i get them) and do i need
        >> to change the php.ini?[/color]
        >
        > GD, normally already present, activate by removing ";" before
        > extension=php_g d2.dll in your php.ini file.
        > http://www.php.net/manual/en/ref.image.php
        >
        > Grtz,[/color]

        Comment

        • tihu

          #5
          Re: Image function?

          WJ Zeeuwen wrote:[color=blue]
          > When i look in C;/php/dlls i see the file gds32.dll I suppose that this
          > is the image library? In which file do i have to remove the ;? I only
          > see php.ini-dist and php.ini-recommended, no php.ini...
          >
          > Thanx!,
          > WJ[/color]

          The image library should be in c:\php\extensio ns

          If you have php up and running on your computer then make a script that
          calls phpinfo(), save the script in you web space, open the script in
          your browser and the location of php.ini will be shown 5/6 rows from
          the top.

          If php.ini doesnt exist yet then you need copy+amend php.ini-dist or
          recommended then rename as php.ini, save the new version in
          c:\windows\syst em32 unless you have added c:\php to the PATH
          environment variable

          Seeya

          Tim

          Comment

          Working...