Conditions | 4 |
Paths | 8 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <? |
||
13 | function formatString($string) |
||
14 | { |
||
15 | $string = trim($string); |
||
16 | if (STRIP_TAGS) { |
||
17 | $string = strip_tags($string); |
||
18 | } |
||
19 | if (STRIP_NL) { |
||
20 | $string = ereg_replace("\n", '', $string); |
||
21 | } |
||
22 | if (STRIP_SPACES) { |
||
23 | $string = ereg_replace(' {2,}', ' ', $string); |
||
24 | } |
||
25 | return $string; |
||
26 | } |
||
57 |
Short opening tags are disabled in PHP?s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php
.