I am asking because I have some packages which runs very smoothly in PHP4 but the give errors in PHP5. Like enexpected $end at the line no--- But the line no is the end of the page.... So what I have to do to coorect it... Please help me its urgent...
Do you actually want to know all differences, or just the solution to your problem? You will need to post your code. Though, I don't think it's a PHP 4/5 issue.
Like enexpected $end at the line no this error is usually caused by a missing } (closing bracket) and i must agree with nico_swd, i dont think this had anything to do with the php version
The main differences are PHP 5 puts more focus on advanced OOP techniques and concepts. For example before PHP 5 classes used this __constructor() to define constructors; However, in PHP 5 constructors are the name of the class. The syntax is exactly the same there is some newer functions.