What is the difference between compiler language and interpreted language ?

Interpreted language executes line by line , if there is some error on a line it stops the execution of script.PHP is an interpreted language.
Compiler language can execute the whole script at a time and gives all the errors at a time It does not stops the execution of script ,if there is some error on some line.