Topics: 15 | Posts: 14 | Comments: 12 | Members: 233
If you have worked with PHP on a regular basis then there is the possibility that you have encountered a clean screen even with countless lines of PHP codes.
This is usually caused by a missing or misplaces ';', '}', ',' or ''' and you don't want this happening fi you have lots of unformatted codes.
To resolve this, there are a few steps you can take either to find or instantly resolve the problem.
First of all, this is something you should always take into consideration and recommend it to your friends. It may sound useless, but it would surely help you to faster find the point of penetration; Always comment each function or line of code you write. If you are now sure how it works, check out the sample below.
<?php
// Comment each line
fuction doSomething($string) {
// Perform function
return string;
}
?>
<?php
// Comment each line
ini_set('display_errors',1);
error_reporting(E_ALL);
?>