Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
Line 96: Line 96:
# setsebool -P httpd_can_sendmail 1
# setsebool -P httpd_can_sendmail 1
# setsebool -P httpd_can_network_connect 1
# setsebool -P httpd_can_network_connect 1
</pre>
=== 移除非預期的空白(全形空白) ===
需要額外移除 [http://www.fileformat.info/info/unicode/char/3000/index.htm 'IDEOGRAPHIC SPACE' (U+3000)] 全形空白
<pre>
$string = str_replace(json_decode('"\u3000"'), "", $string);
$string = trim($string);
</pre>
</pre>


Navigation menu