Installation on 1and1 server

Re: Installation on 1and1 server

by Richard Enison -
Number of replies: 0
SvN,
  1. Once again, you need to ask 1and1 tech. support what needs to be done (by you or them) to cause the changes you make to php.ini to take effect. Also, make sure the php.ini file is in the right directory. Or you could use ini_set instead as you suggested a week ago in another thread.
  2. Once activated, the change you made should take care of the notices, but not the warnings. The very first post in this thread contains the line

    error_reporting = (E_ALL & ~E_NOTICE & ~E_WARNING);

    which should take care of both. The semicolon at the end is unnecessary. Statements in PHP scripts end with a semicolon. Settings in php.ini do not; the semicolon in that file is used to begin a comment.
  3. However, suppressing warnings may not always be a good idea. A lot of times I have seen reports in this forum of a warning that a certain required file could not be opened because it didn't exist, or because the permissions were wrong, and this is followed by an error msg. that the require_once failed. Without the warning, you wouldn't know why it failed.
  4. You're not using both the error_reporting setting in php.ini and with ini_set in config.php, are you? Maybe one is overriding the other.
RLE