- Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
93 lines (86 loc) · 5.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="utf-8">
<metaname="viewport" content="width=device-width, user-scalable=yes, initial-scale=1">
<metaname="description" content="Calculate PHP error reporting bitmask to/from error constants.">
<title>PHP Error Reporting Level/Bitmask Calculator</title>
<linkrel="stylesheet" type="text/css" media="screen" href="styles.css"/>
</head>
<bodyclass="erlc-body">
<headerclass="erlc-page-header">
<h1>PHP Error Reporting Level Calculator</h1>
</header>
<divclass="erlc-content clearfix">
<divclass="erlc-description">
<p>PHP has many levels of errors which are represented by constants (numbers). Constants build up a bitmask that specifies which errors to report. This tool will help you:</p>
<ul>
<li>calculate error reporting level by picking individual error constants</li>
<li>see which constants are set by entering error reporting level bitmask number</li>
</ul>
<divclass="erlc-version">
<labelfor="erlc-version__select">PHP Version:</label><selectid="erlc-version__select"
class="erlc-version__select"></select>
</div>
</div>
<divclass="erlc-calculator">
<divclass="erlc-constants"></div>
<div>
<divclass="erlc-level">
<labelclass="erlc-level__header" for="error-level__input">Resulting Error Level</label>
<divclass="erlc-level__code">
<inputid="error-level__input" class="erlc-level__input" type="number" autofocusmin="0"
placeholder="32767" step="1">
</div>
</div>
<div>
<divclass="erlc-preview">
<divclass="erlc-preview__item erlc-preview__item--error-reporting">
<divclass="erlc-preview__item-header">Set error reporting in PHP at runtime</div>
<codeclass="erlc-preview__item-code"><?php error_reporting(<span
class="erlc-preview__item-value"></span>); ?></code>
</div>
<divclass="erlc-preview__item erlc-preview__item--php-ini">
<divclass="erlc-preview__item-header">Set error reporting in php.ini</div>
<codeclass="erlc-preview__item-code">error_reporting = <span
class="erlc-preview__item-value"></span></code>
</div>
<divclass="erlc-preview__item erlc-preview__item--htaccess">
<divclass="erlc-preview__item-header">Set error reporting in Apache's .htaccess</div>
<codeclass="erlc-preview__item-code">php_value error_reporting <span
class="erlc-preview__item-value"></span></code>
</div>
<divclass="erlc-preview__item erlc-preview__item--cli">
<divclass="erlc-preview__item-header">Set error reporting in PHP CLI (e.g. in cron job)</div>
<codeclass="erlc-preview__item-code">/usr/bin/php -d error_reporting=<span
class="erlc-preview__item-value"></span> wp-cron.php</code>
</div>
</div>
</div>
</div>
</div>
</div>
<footerclass="erlc-footer">
Project page on <ahref="https://github.com/maximivanov/php-error-reporting-calculator/">Github</a>.
© 2016 Max Ivanov.
Share this on →
<ahref="https://twitter.com/home?status=https%3A//maximivanov.github.io/php-error-reporting-calculator/"
rel="nofollow" target="_blank" title="Share on Twitter">Twitter</a>
<ahref="https://www.facebook.com/sharer/sharer.php?u=https%3A//maximivanov.github.io/php-error-reporting-calculator/"
rel="nofollow" target="_blank" title="Share on Facebook">Facebook</a>
<ahref="https://plus.google.com/share?url=https%3A//maximivanov.github.io/php-error-reporting-calculator/"
rel="nofollow" target="_blank" title="Share on Google+">Google+</a>
</footer>
<scriptasyncsrc="https://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js"></script>
<scriptasyncsrc="scripts.js"></script>
<scriptasyncsrc="webfont.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*newDate();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create','UA-77413158-1','auto');
ga('send','pageview');
</script>
</body>
</html>