No products in the cart.
Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
-
chiborg
ParticipantIf you somehow find yourself in a situation where you can’t modifiy the setting via
php.ini
or.htaccess
you’re out of luck for displaying errors when your PHP scripts contain parse errors. You’d then have to resolve to linting the files on the command line like this:find . -name '*.php' -type f -print0 | xargs -0 -n1 -P8 php -l | grep -v "No syntax errors"
If your host is so locked down that it does not allow changing the value via
php.ini
or.htaccess
, it may also disallow changing the value viaini_set
. You can check that with the following PHP script:<?php if( !ini_set( 'display_errors', 1 ) ) { echo "display_errors cannot be set."; } else { echo "changing display_errors via script is possible."; }
- AuthorPosts
Viewing 1 post (of 1 total)