Online
 
Friday, 09 January 2009
 
 
More article:
Related Content:

Website PHP Abnormal Script
 

PHP - PHP Language Programing 

PHP Abnormal Script - Most scripts will execute from start to finish, but sometimes they might end prematurely. There is a variety of reasons why this will happen:

  1. You've screwed up somewhere, and PHP cannot execute your code.

  2. PHP has screwed up somewhere due to a bug and cannot continue.

  3. Your script has taken too long to execute and gets killed by PHP.

  4. Your script has requested more memory than PHP can allocate and gets killed by PHP.


To be brutally honest, the first situation is unequivocally the most common. This will change a little as your skill with PHP improves, but the first situation is still the most common, even among the most veteran programmers.

Common errors include missing semicolons and parentheses, for example:

 <?php
$i = 10
$j = 5;
if (($i + 2) - ($j + 5) == 10 {
print "Success!";
}
?>
The first line is missing a semicolon, which will cause PHP to flag an error on the second line. Also, the second line is missing a parenthesis after "== 10", causing another error.

Read More PHP:PHP - Functions | PHP - Including Other Files | PHP - Comments Tutorial | PHP - Example Whitespace | PHP - Variables of PHP | PHP - Basics of PHP | PHP Abnormal Script | PHP - Output Control  

Links to this article:"PHP - Abnormal PHP Script

 

Tags: Add more tags...,
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment. Tags: Simple PHP, Pear, Easy PHP, PHP Tutorial, PHP MySQL, XSLT, Sap Tutorial, CSS Tutorial, XSL FO Java, SQL Tutorial.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Wallpaper 29
Statistic


Last Post

 
Top! Top!