For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > February 2005 > There is no PHP.ini









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author There is no PHP.ini
Bob Bedford

2005-02-24, 3:56 pm

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

2005-02-24, 3:56 pm

Bob Bedford wrote:
> 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.


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

/Marcin
Bob Bedford

2005-02-24, 3:56 pm


"Marcin Dobrucki" <Marcin.Dobrucki@TAKETHISAWAY.nokia.com> a écrit dans le
message de news: TmlTd.38700$k4.755367@news1.nokia.com...
> Bob Bedford wrote:
>
> running phpinfo() function will tell you. If there is not file, then it
> will use the default values.
>
> /Marcin

Thanks for replying Marcin,

I've this in phpinfo():


Bob Bedford

2005-02-24, 3:56 pm


"Marcin Dobrucki" <Marcin.Dobrucki@TAKETHISAWAY.nokia.com> a écrit dans le
message de news: TmlTd.38700$k4.755367@news1.nokia.com...
> Bob Bedford wrote:
>
> running phpinfo() function will tell you. If there is not file, then it
> will use the default values.
>
> /Marcin

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


Andy Hassall

2005-02-25, 3:56 am

On Thu, 24 Feb 2005 16:09:28 +0100, "Bob Bedford"
<bedford1@notforspammershotmail.com> wrote:
>"Marcin Dobrucki" <Marcin.Dobrucki@TAKETHISAWAY.nokia.com> a écrit dans le
>message de news: TmlTd.38700$k4.755367@news1.nokia.com...
>
>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)


Set the PHPRC environment variable.

http://uk.php.net/configuration

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.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com