Re[2]: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-22 Thread Leif Gregory
Hello Richard,

Saturday, October 22, 2005, 6:37:14 PM, you wrote:
 Otherwise, it's compiled into the DLL and you are stuck.

 A Windoze shortcut WILL NOT WORK

One of the easiest ways to ensure you're using the php.ini file you
want is to create the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath

I usually stick my php.ini in my php folder because I ensure that I
(my user account) has sufficient rights to modify anything in the php
folder whereas the server admin wouldn't give my user account rights
to modify files in the Windows folder.

You can read more here:

http://docs.php.net/en/configuration.html#configuration.file

In addition to setting the directives in the php.ini file for your
extensions folder, I'd also add it to your Windows Path.

You can do that by:

Right-click My Computer

Choose properties

Advanced tab

Click the Environment Variables button

Under System variables, edit the Path

At the end of the path line, add a semi-colon (if there isn't one)

Then type in the full path to your extensions folder i.e.
C:\PHP\ext

Click, Ok, then Ok, then Ok.

Restart your webserver, run phpinfo() and make sure that the ini path
is the one you specified.

Just FYI, you might add the main php folder to your path as well
because some of the .dlls you want might be in that folder
libeay32.dll for instance.



-- 
  TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B
 __       Geocaching:http://gps.PCWize.com
(  )  ( ___)(_  _)( ___)  TBUDP Wiki Site:  http://www.PCWize.com/thebat/tbudp
 )(__  )__)  _)(_  )__)   Roguemoticons  Smileys:http://PCWize.com/thebat
()()()(__)PHP Tutorials and snippets:http://www.DevTek.org

What's the difference between ignorance and apathy?
I don't know and I don't care.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Tom Rogers
Hi,

Saturday, October 22, 2005, 6:26:57 AM, you wrote:
JB [snip]
 I just noticed that extension_dir in phpinfo is c:\php4 THAT AIN'T RIGHT!
 Why is PHP not loading the proper ini file? This is probably the source of
 my problems all along! ACK!
 

JB This is what happens when you go over to the dark side.
JB [/snip]

JB It's not my fault! How do I fix this?


I always put the php.ini file where the .exe file is, so for apache put it
where apache.exe is if loading as a module or where php.exe is if
using cgi

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php