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 <li...@lonnie.abelbeck.com> wrote: > 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/code/6645 > > Lonnie > > > On Jul 14, 2014, at 7:01 PM, Michael Knill wrote: > >> 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 <li...@lonnie.abelbeck.com> >> wrote: >> >>> 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 certain. >>> >>> Lonnie >>> >>> >>> On Jul 14, 2014, at 6:06 PM, Michael Knill wrote: >>> >>>> 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 really like to receive corrupted >>>> responses which occurs with a displayed error message. >>>> >>>> As such, I would like to turn the display errors off permanently and keep >>>> error logging on for debugging purposes. >>>> >>>> Do I have to edit /etc/php.ini? What are the others actually used for? >>>> >>>> Regards >>>> Michael Knill >>>> >>>> >>>> >>>> >>>> On 14 Jul 2014, at 10:34 pm, Lonnie Abelbeck <li...@lonnie.abelbeck.com> >>>> wrote: >>>> >>>>> 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 >>>>> control operator, ex. >>>>> -- >>>>> $err = @foo(); >>>>> -- >>>>> Any display errors will be ignored for that one call. >>>>> http://php.net/manual/en/language.operators.errorcontrol.php >>>>> >>>>> -- Turn off all error reporting at runtime -- >>>>> error_reporting(0); >>>>> -- >>>>> http://php.net/manual/en/function.error-reporting.php >>>>> >>>>> The last two are runtime overrides to the "/etc/php.ini" defaults, which >>>>> is the better route to go. >>>>> >>>>> Lonnie >>>>> >>>>> >>>>> On Jul 13, 2014, at 11:33 PM, Michael Knill wrote: >>>>> >>>>>> 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 or is there something I can change to make it >>>>>> read the one in www? >>>>>> >>>>>> Regards >>>>>> Michael Knill >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Want fast and easy access to all the code in your enterprise? Index and >>>>> search up to 200,000 lines of code with a free copy of Black Duck® >>>>> Code Sight™ - the same software that powers the world's largest code >>>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>>> http://p.sf.net/sfu/bds >>>>> _______________________________________________ >>>>> Astlinux-users mailing list >>>>> Astlinux-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>>>> >>>>> Donations to support AstLinux are graciously accepted via PayPal to >>>>> pay...@krisk.org. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> Astlinux-users mailing list >>>> Astlinux-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>>> >>>> Donations to support AstLinux are graciously accepted via PayPal to >>>> pay...@krisk.org. >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Astlinux-users mailing list >>> Astlinux-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>> >>> Donations to support AstLinux are graciously accepted via PayPal to >>> pay...@krisk.org. >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> pay...@krisk.org. >> >> > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.