Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logic Errors in PHP ?
#1
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.
Reply
#2
The syntax error is a any mistake in symbol or missing symbol in a syntax. Logical error means you expressed something that is logically incorrect and it will produce unwanted result. The logical error occur at run-time. The run-time error produced by a logical error.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Environment Errors beingchinmay 0 2,852 07-02-2016, 03:50 PM
Last Post: beingchinmay
  How do I resolve errors in my SQL queries? beingchinmay 0 2,907 01-09-2016, 04:30 PM
Last Post: beingchinmay

Forum Jump:


Users browsing this thread: 1 Guest(s)