How can I turn on PHP errors display on just a subfolder

前端 未结 4 1291
你的背包
你的背包 2020-12-31 04:59

I don\'t want PHP errors to display /html, but I want them to display in /html/beta/usercomponent. Everything is set up so that errors do not displ

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 05:23

    I don't believe there's a simple answer to this, but I'd certainly want to be proven wrong.

    edit: turns out this can be controlled from .htaccess files. Thanks people! :)

    You can use error_reporting() http://docs.php.net/manual/en/function.error-reporting.php to switch the setting on a script by script basis, though. If you happen to have a single script which is included every time at /html/beta/usercomponent, this will do the trick.

提交回复
热议问题