One of the big causes of errors in PHP scripts is the lack of a portable code standard. In this article, Derek takes a look at a few little things that we can do to help make our PHP scripts more portable. When other developers comes to use them, they will have more of a chance of working successfully the first time, without the need to perform any kind of system configuration modifications, etc.
Tips For Making Your PHP Code More Portable (Page 1 of 4 )
Have you ever downloaded a PHP script and tried to run it on your web server, only to receive a bunch of confusing error messages? The odds are that these errors occurred because your PHP initialization file wasn't exactly the same as the initialization file on the machine where the script was created.
In this article we're going to take a look at a few little things that you can do to help make your PHP scripts more portable, so that when other developers buy/download them, they will have more chance of working successfully the first time, without the need to perform any kind of system configuration modifications, etc.
If you'd like to use the tips described in this article to make your PHP code more portable, then you should have the latest version of PHP installed on either an Apache/IIS web server running under Linux, Unix, or Windows.