Software errors By Web MOROcco

Discussion in 'PHP' started by THE-arabic-web, Oct 31, 2008.

  1. #1
    Software errors:

    If you are using PHP language or any language other kinds of mistakes are applicable to all. Shi comfortable Atuagueni opinion? These mistakes are 3 kinds of clerical errors,, operational errors,, logical errors and will speak for each individual to understand their content and how to avoid it.

    Clerical errors:

    Each written language terms and called Bal (Syntax) and now we want to proceed mistakes named b (Syntax Error) and if this grace will not follow the conditions lead us to regard the program will not work properly and will not be operational basis, including the semicolon at the end of Line and the text in quotation marks If we breach these conditions will not work with us, the program correctly. One of the most powerful objects in the language PHP helpful Alrsal is showing us at the time of error, an example of this letter is as follows:

    [​IMG]

    The result of this error code follows:

    [​IMG]

    Notes that if the error code is in the top when we passed the text to a function of history we do not close the quotation marks,, We have one mark and forgot the other consequence of this error resulted dear. Junior mistake or error wheel, you, resolution Do not forget that clerical errors of the easiest mistakes in programming languages, therefore, it gives you the wrong line by mistake, which is to be amended.

    Clerical errors:

    Operational errors are the most difficult in the IGAD and reform these mistakes do not result from error, please be detected by the translator. This way mistakes have worked with all the codes are written correctly and example of this error is when using the words include ( 'filename.php); these words true and there is no clerical error, but when the operation will find that there is not wrong because the file The foundation is in the message that you will not have translated the authority to open this file (note that does not exist) and will show you an error similar to the following:

    [​IMG]

    Another example of an operational error is divisible by 0, code has been written is true of 5 lines, but did not work because the division 0, noted as follows:



    Resulting in this letter I have to make your day is bad



    It will be easier for you this lesson give you a common operational errors:

    The use of non-existent functions

    Reading or writing files

    Dealing with databases

    Communication services networks

    Not verify the information entered

    Logical errors:

    Is the logical errors of the hardest Osora mistakes and reform in all programming languages are. The essence of the mistakes that code written correctly and working properly, but not by the result they want software code writer. Example of this error is a function of repetition (for loop) noted the following code:

    [​IMG]
    If looked at the code glance you'll see that it is to be writing the word "Welcome" 10 times Is not that true? But when the operation of the program will write code only once. If not, you will not find depth of error, but if the large concentration will see that there is a semicolon after the market function and repetition Key make Alngah this place 10 times and then print the word, Hello, this is the reason for the error. The error also receive indications While if we do not carry us out is a function of repetition.



    Stages of mistakes:

    The language PHP give you the freedom to show whatever mistakes they want, you can choose any mistakes do not show any nature show the PHP Bithar all the mistakes without alerts, and stages of mistakes on the fundamentals of the words will share with you in the table you'll see now:





    Ultimately:

    We are finished!! Some say recently concluded from these lessons ended today PHP language lessons and I can guarantee you if Atabt appropriate lessons and read some of the external sources to achieve 80% of learning the language PHP, Vakadm just something very easy to advance previously explained At this session. I hope that you will have Tkono Astmtam in the PHP in the Tnso Pappalasilh open in this section, is reluctant to my question for this Shi any Language, if you have a problem. For things that might arise in the PHP language changes in the future or will do useful things on their separate courses, then did not end but the lessons will stay in touch through this language that would have stood on the throne for future programming languages. Greetings to you
    And unfortunately that was not the lesson well and the concept because he first studied E
    MSN a7zanet@hotmail.fr
     
    THE-arabic-web, Oct 31, 2008 IP
  2. THE-arabic-web

    THE-arabic-web Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    And this topic is the image the rest has now limit the topic of images is 4

    [​IMG]


    [​IMG]

    [​IMG]

    [​IMG]
     
    THE-arabic-web, Oct 31, 2008 IP