Chapter 8PHP Basics

PHP is a server-side scripting language that is processed before the page is sent to the client’s browser. Any page whose extension is registered as containing PHP scripts is sent through the PHP engine first. By default, this extension is usually .php. Other extensions may be added to the web server’s MIME types to also be processed for PHP scripts.

PHP Scripts

When the PHP engine scans a page for PHP scripts, it is looking for the opening PHP tag, which is:

<?php

The PHP engine continues to process the script until it reaches either an error in the code or the closing PHP tag, which is:

?>

Make sure that all of your PHP code is within PHP script tags, or the code will be interpreted as text. Failing to have a closing PHP script ...

Get FileMaker Web Publishing: A Complete Guide to Using the API for PHP 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.