So you've finally managed to install PHP. Anxious to use your new tool, you find the print function in the manual, write your own hello world, load the page and the dreaded 'Parse error: parse error in /usr/local/apache/htdocs/test.php on line 2' error po
Tutorial Details:
Debugging PHP
You didn't think you were going to slip right into PHP without going through the compiler/parser initiation process, did you? Don't worry, we have the "Coles Notes" on common newbie problems and errors. We will start with general syntax errors, move on to runtime errors and conclude with tips on the infamous logical errors and some last resort links to visit when all else fails. The end of this article features a bulleted checklist to consult in case of errors. Print it and keep it by your side for those gloomy Sunday nights before the deadline. Many have spent hours banging their heads against their monitors so why should you (it's an expensive habit).
PHP automatically instantiates variables which means that you do not have to formerly declare them. A process called "autovivification". This is both a blessing and a curse. You don't have to worry about declaring every single variable at the top of your program (as you would in "C") but you do have to worry about misspelling your variable names and accidentally declaring new ones. Some languages, such as Perl , keep track of variables used only once and given the proper runtime options will warn you. Additionally Perl offers a very functional debugger. PHP development as of PHP 4.0.2 has not yet matured to this stage.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: PHP Development Debugging PHP: Did You Remember to "Dot All Your I's and Cross All Your T's"? Tutorial
View Tutorial: PHP Development Debugging PHP: Did You Remember to "Dot All Your I's and Cross All Your T's"? Tutorial
Related
Tutorials:
|