Re: [Astlinux-users] php.ini

2014-08-20 Thread Lonnie Abelbeck
No harm in the PHP scripts, this just allows control at a higher level. The bigger problem we had to address was the fact that starting in PHP 5.3 the code to retrieve the system timezone value was being removed, totally removed in 5.4+ . So the only general solution for us is to dynamically cr

Re: [Astlinux-users] php.ini

2014-08-20 Thread Michael Knill
Thanks Lonnie for the info. I assume there is still no harm in setting them in the PHP scripts themselves? Regards Michael Knill On 20 Aug 2014, at 10:26 pm, Lonnie Abelbeck wrote: > FYI, the next release has changes related to this thread... > > We now dynamically define /etc/php.ini so '

Re: [Astlinux-users] php.ini

2014-08-20 Thread Lonnie Abelbeck
FYI, the next release has changes related to this thread... We now dynamically define /etc/php.ini so 'date.timezone' is always specified to the TIMEZONE variable, ability to manually define the /etc/php.ini file, and sets 'display_errors = Off' by default. http://sourceforge.net/p/astlinux/cod

Re: [Astlinux-users] php.ini

2014-07-14 Thread Michael Knill
Ahh I have it now. I will do it in the PHP files itself. ini_set(“display_errors", 0); ini_set(“log_errors”, 1); Thanks for your help. Regards Michael Knill On 15 Jul 2014, at 9:48 am, Lonnie Abelbeck wrote: > Michael, > > The "/etc/php.ini" file is the global file used by our latest PHP

Re: [Astlinux-users] php.ini

2014-07-14 Thread Lonnie Abelbeck
Michael, The "/etc/php.ini" file is the global file used by our latest PHP and lighttpd. This was not always the case and that is why you see other legacy php.ini's in the web interface. If PHP is called via the command line, possibly a php.ini in the same directory may be used, but I'm not c

Re: [Astlinux-users] php.ini

2014-07-14 Thread Michael Knill
Thanks Lonnie. Sorry I thought it was a bit easier than this so I didn’t put it in the dev list. The problem with display level error reporting is that I use PHP for all my phone startup routines and a large number of XML phone features. I hate access codes. As you would imagine, phones don’t r

Re: [Astlinux-users] php.ini

2014-07-14 Thread The Cadillac Kid
I always handled it the other way around for production systems. Generally error reporting defaults to off in the php.ini file and then while you are developing a script, module, etc you turn it on in the runtime for debugging, this way it defaults to the more secure option. (it is also the way

Re: [Astlinux-users] php.ini

2014-07-14 Thread Lonnie Abelbeck
Hi Michael, This question probably belongs on the -devel list, but here goes... To directly answer your question, you could edit "/etc/php.ini" and restart 'lighttpd' to apply the change. Though this is not what I would do. You could "ignore display errors" selectively by using the '@' error c

[Astlinux-users] php.ini

2014-07-13 Thread Michael Knill
Sorry group if this is a dumb question. I need to edit php.ini to turn off error display. I have moved my www directory to /mnt/kd of which there exists a php.ini and also in www/admin. On doing php -i | grep ‘php.ini’ I find that its actually reading from /etc/php.ini. Do I edit /etc/php.ini