PHP 4 vs. PHP5

liunx

Guest
hi to all;

- i have question is possible to use scripts writen for PHP4 on PHP5?

- why am I asking this? beccause I have a website made for PHP4 and I use there MySql database. And now I would like to change my webhosting server, but they are using PHP5.

- is there a difference between PHP4 and PHP5.

thx to all...:rolleyes:most scripts for php4 will run on php5. vice versa you might have some issues, but it depends if you are using the new php5 features.

there are however some slight differences. here is something you might want to take a look at. migrating php4 to php5 (<!-- m --><a class="postlink" href="http://docs.php.net/en/migration5.html">http://docs.php.net/en/migration5.html</a><!-- m -->).Other threads in this forum on the same subject:
pros and cons of PHP5 vs. PHP4 (<!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/showthread.php?s=&threadid=10291487&highlight=PHP4">http://www.phpbuilder.com/board/showthr ... light=PHP4</a><!-- m -->)
upgrade 2 php5! BUT any backward incompatibility btwn php5 and php4?? (<!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/showthread.php?s=&threadid=10286818&highlight=PHP4">http://www.phpbuilder.com/board/showthr ... light=PHP4</a><!-- m -->)
php5 v. php4 (<!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/showthread.php?s=&threadid=10276462&highlight=PHP4">http://www.phpbuilder.com/board/showthr ... light=PHP4</a><!-- m -->)
 
Back
Top