where oh where can my php.ini be?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Misiorowski

    where oh where can my php.ini be?

    Hello,

    Everything started with me wanting to write a little command line php
    script that uses some gd functions. After a little research, I realized I
    need to unccomment the line in my php.ini that references the gd module. I
    did that, and still no gd (I get the error message at run time, that
    imagecreatefrom jpeg() doesn't exist). At first I thought that I changed the
    wrong php.ini file, even though I changed the one in c:\windows, which is
    the one php_info() says it's using. I then proceeded to delete every php.ini
    file on my computer except the one in c:\windows (there was one more). Same
    problem, no GD. Then just for fun I decided to rename the php.ini file in
    c:\windows to php.bak. I then ran my script again thinking I would get an
    error about a missing php.ini. To my dismay this was not the case, as I
    received the same complaint about imagecreatefrom jpeg() not existing. I'm
    perplexed. There is absolutely no file named php.ini on my entire PC, much
    less in c:\windows where it says it's looking for it. I've search through
    hidden folders, and nothing.
    What is php using as the ini file? Basically, I need to get to the point
    where php is using an ini file, of which I know exactly where this file is
    and I can modify it. Can anyone shed some light on this for me?

    Thanks,

    Robert.


  • David Röthlisberger

    #2
    Re: where oh where can my php.ini be?

    hello,
    [color=blue]
    > At first I thought that I changed the wrong php.ini file, even though I
    > changed the one in c:\windows, which is the one php_info() says it's
    > using.[/color]

    So you changed the right php.ini, you can trust in what phpinfo() says. ;)
    [color=blue]
    > Then just for fun I decided to rename the php.ini file in c:\windows to
    > php.bak. I then ran my script again thinking I would get an error about a
    > missing php.ini.[/color]

    Have you restarted your webserver before running your script again?
    If not, try to do that. You should always do a restart of your webserver,
    after you have changed something in php.ini. Otherwise, your changes won't
    have any effect.

    kind regards,
    David


    Comment

    • Andy Hassall

      #3
      Re: where oh where can my php.ini be?

      On Fri, 15 Oct 2004 16:45:00 -0500, "Robert Misiorowski" <rmisio@yahoo.c om>
      wrote:
      [color=blue]
      > Everything started with me wanting to write a little command line php
      >script that uses some gd functions. After a little research, I realized I
      >need to unccomment the line in my php.ini that references the gd module. I
      >did that, and still no gd (I get the error message at run time, that
      >imagecreatefro mjpeg() doesn't exist). At first I thought that I changed the
      >wrong php.ini file, even though I changed the one in c:\windows, which is
      >the one php_info() says it's using. I then proceeded to delete every php.ini
      >file on my computer except the one in c:\windows (there was one more). Same
      >problem, no GD. Then just for fun I decided to rename the php.ini file in
      >c:\windows to php.bak. I then ran my script again thinking I would get an
      >error about a missing php.ini. To my dismay this was not the case, as I
      >received the same complaint about imagecreatefrom jpeg() not existing. I'm
      >perplexed. There is absolutely no file named php.ini on my entire PC, much
      >less in c:\windows where it says it's looking for it. I've search through
      >hidden folders, and nothing.
      > What is php using as the ini file? Basically, I need to get to the point
      >where php is using an ini file, of which I know exactly where this file is
      >and I can modify it. Can anyone shed some light on this for me?[/color]

      Create a file containing just <?php phpinfo(); ?>.

      Then look near the top, and see what it says next to "Configurat ion File
      (php.ini) Path". (And post that here exactly as it displays, if the php.ini
      file it references doesn't seem to be being read)

      --
      Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
      <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

      Comment

      Working...