hi Debbie,
Scripts that were written for PHP4 should work fine for PHP5... the only differences that you should pay attention to are listed here:
http://us2.php.net/manual/
All that comes to mind besides this, is old scripts or poorly written code which depends on register globals being turned on. Register globals were actually turned off by default as of php version 4.2.0 because of misuse of the feature which lead to insecure code. You can read more on the matter here:
http://us3.php.net/registe
You can turn them on by changing the register_globals setting in the php.ini file (and restarting your web server) but you should really update your scripts if needed.
eg: if you have a form input (with the post method)
<input type="text" name="myinput">
reference its value using $_POST['myinput'] rather then $myinput
or if the form uses the get method (or when using the query string, page.php?myinput=somevalue
use: $_GET['myinput'] or $_REQUEST['myinput'].
Diablo84
Main Topics
Browse All Topics





by: DanFGPosted on 2005-07-15 at 17:09:05ID: 14455780
Migrating from PHP 4 to PHP 5 en/faq.mig ration5.ph p
http://www.php.net/manual/