|
||||
|
Handy PHPPHP Includes:PHP includes are a bit tricky. They can be an absolute path from the root of the server (not the website) or relative from the page where the include is being called. How I like to keep track of includes is by using a PHP function called $_SERVER["DOCUMENT_ROOT"]. This will then provide the complete physical path of the site and I can then append the location of the icnlude page from the root of the site. <?php include( $_SERVER["DOCUMENT_ROOT"] . "'/includes/include_page.php"); ?> IF statements:
<?php If Happy=1 { Random NumbersRandom numbers are simple. Just by using call the rand function and send it two integers, the first integer being the smallest random value and the last integer being the largest. variable=rand (first integer,last integer); Switchswitch (variable) { Article last reviewed: 08/31/2003
|
Related Articles: Advertise Here |
||||||||