Php.ini

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Black-Artist
Forum Newbie
Posts: 4
Joined: Mon Sep 30, 2002 11:49 am

Php.ini

Post by Black-Artist »

hiya people,

I have what seems a strange problem, I am using phpdev from Firepages as its easy to setup etc.

For some reason I cannot edit the php.ini which is in a folder called:

C:\WINXT thats where the instructions tell me it should be, I need to change the location of : session.save_path so I change it to c:/WINXT/sessions (I use Win Xp) but when I use phpinfo to view my php setup its still pointing to /tmp, but the php.ini file has taken my changes, I searched my computer for another php.ini file in the hope that another one was being read, but alas no, there is only one php.ini on my computer.

any help appreciated, btw the php.ini file isn't in readonly mode.

cheers

BA
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

Look at this section of phpinfo to locate the correct path to the php.ini file to ensure that you are editing the correct one:
Configuration File (php.ini) Path

Direwolf
Black-Artist
Forum Newbie
Posts: 4
Joined: Mon Sep 30, 2002 11:49 am

Post by Black-Artist »

phpinfo is tell me the path is c:\WINXT, which is the one I am editing. :(

I have restarted apache/mysql/ arghhhh
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The php.ini should be in your main windows folder, on NT 4 and 2000 this is C:\winnt, on 9.x and XP (at least on my system) it's in the C:\windows folder. You say that you are putting it in C:\winxt - is this your main windows folder, ie. where Windows stores all its bits? I appreciate you may have changed the folder's name from the default but I just wanted to check.

Mac
Black-Artist
Forum Newbie
Posts: 4
Joined: Mon Sep 30, 2002 11:49 am

Post by Black-Artist »

well I am using phpdev from firepages which is already setup, all I do is download the zip file, extract it to C:\ and its all preconfigured for my use on my local machine, the instructions for phpdev say php.ini should be in a folder called WINXT on an XP OS (winnt for anything other the XP), so everything appears in the correct place, just not working. :)
Black-Artist
Forum Newbie
Posts: 4
Joined: Mon Sep 30, 2002 11:49 am

Post by Black-Artist »

rightyooo I moved php.ini to c:\windows and hey presto its being read :), thanks very much, I was following the instructions properly, its just the instructions where wrong :)
Post Reply