Whenever i use the ini_set tool it never seems to change anything. Am i using it correctly or is there something that needs to be done in the setup to make it work.

ini_set('error_log', 'c:\phperrors_new.txt');
echo 'error here'
echo 'next line';

this currently outputs the error to 'c:\phperrors.txt' as defined in the php.ini file.

Cheers,
nozom

    change it to

    ini_set('error_log', 'c:phperrors_new.txt')
        or die("could not ini_set");

    to show if the function is failing

    adam

      doesn't say it's failing. a real head scratcher this ;-)

      Cheers,
      nozom

        I was doing, just mistyped it in here. Is it something that needs to be set in the php ini to allow ini_set?

          maybe your host has disallowed the ini_set function? worth emailing them to check. You could try changing the setting using .htaccess

          adam

            Write a Reply...