Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 58: Line 58:
== troubleshooting steps of function ==
== troubleshooting steps of function ==
simply the question
simply the question
* Enter the function or not really?
* Is the [http://php.net/manual/en/function.function-exists.php function_exists]? If not, looking for the alternative functions.
* disable the logical judgement and just print text
* Was the function really executed? Maybe using the __LINE__ to examin the logic.
* check the if-else condition was satisfied or not cf: [http://www.leepoint.net/notes-java/data/strings/12stringcomparison.html Java: String Comparison] It's logical (compiler will not show the warning) but wrong.
* Disable the logical judgement and just print text
* Check the if-else condition was satisfied or not cf: [http://www.leepoint.net/notes-java/data/strings/12stringcomparison.html Java: String Comparison] It's logical (compiler will not show the warning) but wrong.


== references ==
== references ==

Navigation menu