Forum Moderators: coopster

Message Too Old, No Replies

IIS 5.0 equivalent for Apache SetEnv

         

mrscruff

11:40 am on Feb 22, 2008 (gmt 0)

10+ Year Member



Is there a way to add $_SERVER var's using IIS 5.0?

Looked everywhere, but can not find 'here is how'/'no can't do it'.

Reason: wanted to take db user name and password out of the code it's self, and make it only accessible via the $_SERVER array.

coopster

9:27 pm on Feb 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, mrscruff.

As an alternative, you can actually set the default user and password for many database connections in the php.ini configuration. Have a look at the PHP manual page for the database connection type that you are using for details.