Hudzilla.org - the homepage of Paul Hudson
Contents > Writing PHP > The design process Wish List | Report Bug | About Me ]

19.1.4     Implementing the application

This is NOT the latest copy of this book; click here for the latest version.

Implementation of the finished product is often a laborious task, however PHP's server-side nature and centralised php.ini configuration mean that most applications you write can be deployed with relative ease. There are still things to consider, however: how do users create the initial database and set up passwords? What changes need to be made to their php.ini file, if any? Should you check for a particular version of PHP? Does your application only work on one platform? Does it specifically require a certain module not enabled by default?

While a readme file is often good enough, you will probably find the best bet is to have a configuration script that can be run by the end user, which performs configuration for them. Some products on Unix, for example, have initialisation scripts that, by default, terminate the application with the message "You have not edited your configuration" - users need to edit their config file, at the very least, to remove the automatic exit command, but that requirement also gives them their best opportunity to make other required changes while there.

Although PHP is usually shipped with two example php.ini files, a standard one and a recommended one, you should generally aim for compatibility with only the recommended file, as it is stricter than the standard configuration. You are almost certainly going to cause problems if you insist on using short tags for example, so it is in your own interest to stick to the standard configuration.





<< 19.1.3 Developing the code   19.1.5 Maintenance and support >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
Be the first to add a comment to this chapter!



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is ten plus five?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow