sohdubom Posted April 20, 2009 Share Posted April 20, 2009 hi. i know that with PHP we have a few ways to deal with errors: configure the php.ini file, set error handling or work with exception handling which is a more OOPish way. i also know that once i decide to go with either error handling or exception handling the configs set in php.ini file will be bypassed and it's up to the developer to deal with the errors. well, the doubt i have is regarding php.ini . suppose i'm using a shared host and we have 2 or more webapps running in this box. all of those apps are relying on php.ini configs ... i don't know how is the server architecture, but i think all those apps run over just 1 php.ini file so i believe we should set the configs through our PHP code and not in the php.ini file, otherwise the php.ini configs will be applied to all the apps. Is it right? thanx in advance, sohdubom Link to comment https://forums.phpfreaks.com/topic/154856-error-management-phpini/ Share on other sites More sharing options...
jackpf Posted April 20, 2009 Share Posted April 20, 2009 If they all run off that one php ini, then yes, changes made will be global to all sites. However, the owners of the sites can use a htaccess to change php settings. Is that not good enough? Link to comment https://forums.phpfreaks.com/topic/154856-error-management-phpini/#findComment-814462 Share on other sites More sharing options...
sohdubom Posted April 20, 2009 Author Share Posted April 20, 2009 If they all run off that one php ini, then yes, changes made will be global to all sites. However, the owners of the sites can use a htaccess to change php settings. Is that not good enough? thanx jackpf ... i'm new to PHP so i was in doubt about that. :-) Link to comment https://forums.phpfreaks.com/topic/154856-error-management-phpini/#findComment-814478 Share on other sites More sharing options...
jackpf Posted April 20, 2009 Share Posted April 20, 2009 No problem. I'm not too sure, as I have no experience with multiple php.ini's or hosting, but you might be able to set up php to run of a different php.ini for each site. Just did a quick google and found this which may be of interest to you. Link to comment https://forums.phpfreaks.com/topic/154856-error-management-phpini/#findComment-814481 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.