JSP Hosting
 

HostingServicesSupportOrderAbout UsSoftwareHome


Even experts read the manuals. Our tech support staff has most of the books that are out on a wide variety of web topics. Here are some of their top picks. We think you'll find them useful and informative as well.



A simple PHP page

PHP lets you embed a scripting language into your HTML pages. When the page is retrieved from the server, the server first executes the PHP script on the page and creates an HTML page on-the-fly. All PHP commands must appear between a set of open and closing brackets with question marks like this: <? ?>

The PHP code can be interspersed with standard HTML as much as you like. For example, the following code prints the given text followed by the current year in bold:

The current year is <B><?echo date("Y")?></B>

PHP pages must be named with a .php extension for the server to recognize them and pre-process the PHP code.

Including files

You can also use PHP to include one HTML document inside another. For example, if you have a standard navigation bar that you don't want to include in every single page, you could just include it as follows:

<?include ("navbar.html")?>

By doing this, you could later modify the navigation bar on every page throughout your site by simply updating the navbar.html file.

Previous | Next

ote: MMA technical support staff cannot provide troubleshooting of problems with third-party CGI scripts including but not limited to: Perl scripts, C/C-/5++ binaries, PHP or web/database integration unless these services are specifically contracted. For these services, please see our Quote Request Form.



Copyright © 1995-2012
Motivational Marketing Associates, LLC
All Rights Reserved.