Jump to content

Php.ini Change Is Possible?


lfspt

Recommended Posts

Hi, i installed php-nuke on my hosting. But php-nuke use deprecated functions on current php (as eregi())... and it can be resolved if put on php.ini the error_reporting = E_ALL^E_NOTICE^E_DEPRECATED

 

 

It's possible make this change please?

 

 

Sorry my english!

 

Best regards

Link to comment
Share on other sites

You could try to set it in the .htaccess file:

php_value error_reporting 22519

though when I try to test it on Stevie I got error 500, so that would mean that it's impossible to change it through .htaccess.

 

Other way - which works fine for me in my test on Stevie - is changing the error_reporting value directly in the PHP script:

ini_set("error_reporting", E_ALL & ~E_NOTICE & ~E_DEPRECATED);

I don't know where exactly in PHP-Nuke files you would have to put this, but I can imagine that in the configuration file - which is most likely included every time - would be most easy.

 

 

However I can see on my Stevie's account that default error_reporting setting is now exactly 22519 so deprecation alerts should be ignored. If not, then most likely PHP-Nuke itself inside of its code is changing this value.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...