There is no PHP.ini

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    There is no PHP.ini

    Hi all,

    I've a fresh install of php 4.1.10 on my XP machine and there is no php.ini
    file.

    I've removed any from system directory, so wich one it is using ? as they
    are no other php.ini file than in the Backup directory of the php install
    dir.

    Bob


  • Marcin Dobrucki

    #2
    Re: There is no PHP.ini

    Bob Bedford wrote:[color=blue]
    > Hi all,
    >
    > I've a fresh install of php 4.1.10 on my XP machine and there is no
    > php.ini file.
    >
    > I've removed any from system directory, so wich one it is using ? as
    > they are no other php.ini file than in the Backup directory of the php
    > install dir.[/color]

    running phpinfo() function will tell you. If there is not file, then
    it will use the default values.

    /Marcin

    Comment

    • Bob Bedford

      #3
      Re: There is no PHP.ini


      "Marcin Dobrucki" <Marcin.Dobruck i@TAKETHISAWAY. nokia.com> a écrit dans le
      message de news: TmlTd.38700$k4. 755367@news1.no kia.com...[color=blue]
      > Bob Bedford wrote:[color=green]
      >> Hi all,
      >>
      >> I've a fresh install of php 4.1.10 on my XP machine and there is no
      >> php.ini file.
      >>
      >> I've removed any from system directory, so wich one it is using ? as they
      >> are no other php.ini file than in the Backup directory of the php install
      >> dir.[/color]
      >
      > running phpinfo() function will tell you. If there is not file, then it
      > will use the default values.
      >
      > /Marcin[/color]
      Thanks for replying Marcin,

      I've this in phpinfo():


      Comment

      • Bob Bedford

        #4
        Re: There is no PHP.ini


        "Marcin Dobrucki" <Marcin.Dobruck i@TAKETHISAWAY. nokia.com> a écrit dans le
        message de news: TmlTd.38700$k4. 755367@news1.no kia.com...[color=blue]
        > Bob Bedford wrote:[color=green]
        >> Hi all,
        >>
        >> I've a fresh install of php 4.1.10 on my XP machine and there is no
        >> php.ini file.
        >>
        >> I've removed any from system directory, so wich one it is using ? as they
        >> are no other php.ini file than in the Backup directory of the php install
        >> dir.[/color]
        >
        > running phpinfo() function will tell you. If there is not file, then it
        > will use the default values.
        >
        > /Marcin[/color]
        will try again....
        Configuration File (php.ini) Path C:\WINDOWS

        But I've no php.ini file in this directory and it probably takes default
        values.

        How to change this path ? I'like it points in the PHP's install dir
        (c:\program files\php)

        Bob


        Comment

        • Andy Hassall

          #5
          Re: There is no PHP.ini

          On Thu, 24 Feb 2005 16:09:28 +0100, "Bob Bedford"
          <bedford1@notfo rspammershotmai l.com> wrote:[color=blue]
          >"Marcin Dobrucki" <Marcin.Dobruck i@TAKETHISAWAY. nokia.com> a écrit dans le
          >message de news: TmlTd.38700$k4. 755367@news1.no kia.com...
          >
          >will try again....
          >Configuratio n File (php.ini) Path C:\WINDOWS
          >
          >But I've no php.ini file in this directory and it probably takes default
          >values.
          >
          >How to change this path ? I'like it points in the PHP's install dir
          >(c:\program files\php)[/color]

          Set the PHPRC environment variable.



          Having PHP and the config file in a directory whose path contains a space is
          probably a recipe for pain, but that's up to you - it can probably be persuaded
          to work.

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

          Comment

          • Kees Nuyt

            #6
            Re: There is no PHP.ini

            On Thu, 24 Feb 2005 16:09:28 +0100, "Bob Bedford"
            <bedford1@notfo rspammershotmai l.com> wrote:
            [color=blue]
            >will try again....
            >Configuratio n File (php.ini) Path C:\WINDOWS
            >
            >But I've no php.ini file in this directory and it probably takes default
            >values.
            >
            >How to change this path ? I'like it points in the PHP's install dir
            >(c:\program files\php)[/color]

            Assuming you use Apache, you can use the PHPIniDir directive:

            PHPIniDir E:/bin/inet/Apache2/conf"

            I store php.ini in disk:/<ApacheInstallP ath>/conf, which is the
            same directory as where httpd.conf resides.
            [color=blue]
            >Bob[/color]

            Hope this helps,

            --
            ) Kees Nuyt
            (
            c[_]

            Comment

            Working...