PHP Script Characteristics

Filenames for PHP scripts are typically written with an extension that allows your Web server to recognize them and execute the PHP interpreter to process them. If you use an extension that isn't recognized, your PHP scripts will be served as plain text. The extension used in this chapter is .php. Other common extensions are .php3 and .phtml. For instructions on configuring Apache to recognize the extension you want to use, see Appendix A. If you are not in control of the Apache installation on your machine, check with the system administrator to find out the proper extension to use.

Get MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.