Php.ini?


#1

hey, this is for a friend, he’s learning php.
He says he needs to edit php.ini
or more specifically
string ini_set ( string varname, string newvalue )
I’m not sure for what, but how can one change these value?


#2

Are you talking about editing php.ini for use on a DreamHost account, or in general?

That’s a very different thing altogether. So to be clear, is he trying to edit php.ini (presumaby to change a setting) or is he trying to use ini_set to change a configuration setting at run time (I assume he is running mod_php)?

If he is talking about this as it relates to the DreamHost environment, it makes a difference what configuration setting/value he is trying to change as well as whether he is running mod_php or PHP-CGI.

Your friend probably ought to take a trip to php.net, and check out:

http://us.php.net/manual/en/configuration.changes.php
http://us.php.net/manual/en/function.ini-set.php
http://us.php.net/manual/en/ini.php#ini.list

… and then ask his question - or just describe what it is he is trying to install/run rather than assuming what he needs to do to make it work. :wink:

–rlparker