devinmaking
01-09-2012, 11:00 PM
Hi
I know this is not practical and should not be done. My friends website is written in php4 and alot of his functions are depreciated in php5.3.
His website still works on his server 100% but its chucking alot of error reports to the server.
He doesnt want me to rewrite the site which is pretty big as he has no money and personally i have no time at the moment.
He has stated that he just wants to make the site to stop sending errors to the errors log on the server, it can run up alot in a year and he wants to stop it rather than spending time doing it every month.
Is there a function like error_log(NULL); which i can just put at the top of every page to prevent this from happening.
I have looked on php.net but to nothing there.
Also if i cant do this, if i make a php.ini file and upload it to sever and just add the lines:
log_errors = Off
Will that work?
I know this is not practical and should not be done. My friends website is written in php4 and alot of his functions are depreciated in php5.3.
His website still works on his server 100% but its chucking alot of error reports to the server.
He doesnt want me to rewrite the site which is pretty big as he has no money and personally i have no time at the moment.
He has stated that he just wants to make the site to stop sending errors to the errors log on the server, it can run up alot in a year and he wants to stop it rather than spending time doing it every month.
Is there a function like error_log(NULL); which i can just put at the top of every page to prevent this from happening.
I have looked on php.net but to nothing there.
Also if i cant do this, if i make a php.ini file and upload it to sever and just add the lines:
log_errors = Off
Will that work?