07-02-2016, 04:08 PM
Logic errors occur when an application runs perfectly as far as the PHP engine is concerned, but the code does something other than what you had intended. For example, imagine you have a mailing script that you want to use to send the same message to a few of the members of your online forum. To your horror, you discover upon executing the script that you’ve mailed the entire forum membership … twenty times!
These kinds of problems are the most difficult to find; users of Windows XP will be well acquainted with Windows updates—even big companies struggle with logic errors
Critical to finding logic errors is your ability to test rigorously your code in a safe environment that’s separate from your “live” Web server. Thankfully, PHP and related technologies like Apache and MySQL (if you’re using them) are cross platform, which makes putting together an effective development environment easy even if the underlying operating systems are different.
These kinds of problems are the most difficult to find; users of Windows XP will be well acquainted with Windows updates—even big companies struggle with logic errors
Critical to finding logic errors is your ability to test rigorously your code in a safe environment that’s separate from your “live” Web server. Thankfully, PHP and related technologies like Apache and MySQL (if you’re using them) are cross platform, which makes putting together an effective development environment easy even if the underlying operating systems are different.