/    Sign up×
Community /Pin to ProfileBookmark

Folks,

I do my error reporting like this:

[code]
<?php
ini_set(‘display_errors’,1);
ini_set(‘display_startup_errors’,1);
ini_set(‘error_reporting’,E_ALL); //error_reporting(E_ALL);
?>
[/code]

How you do your’s ? Show us.

Thanks!

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMay 08.2021 — Turning on display_errors may be useful for debugging while in development, but you do not want it enabled on the live site. (Besides looking horrible if something happens, it can provide info to malicious users you don't want them to have.)
Copy linkTweet thisAlerts:
@developer_webauthorMay 21.2021 — @NogDog#1631411

Thanks! You just saved my website from being hacked!

Ok. So you think my above code is ok for DEV Mode.

Good.
Copy linkTweet thisAlerts:
@developer_webauthorMay 21.2021 — @Sempervivum,

Show me how you write your code for DEV Mode.

Then, show me how you write code for your PRODUCTION Mode. If you don't mind!
Copy linkTweet thisAlerts:
@developer_webauthorMay 21.2021 — @DaveyErwin,

I'd like to see how you write your's too.

So, you too, show me how you write your code for DEV Mode.

Then, show me how you write code for your PRODUCTION Mode. If you don't mind!
×

Success!

Help @developer_web spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...