#native_company# #native_desc#
#native_cta#

PHP Layout Class Page 4

By Robbin Zhang
on July 30, 2000

We can add more fancy things now with the function ‘setdefault’ at
the beginning of the script.

<?php

    setdefault
("window",array("bgcolor"=>"white"));

    
setdefault("table",array("cellpadding"=>"0"));

    
setdefault("text",array("size"=>"2"));

?>



These functions set the default attributes for the ‘window’,
‘table’ and ‘text’ objects. The result would be:

<BODY BGCOLOR="white">

<P>

<TABLE WIDTH="650" CELLPADDING="0">

<P>

<FONT SIZE="2">


Is this simple enough? Ok. Many of you may ask: How about
much more complex situations? Let’s go over the source of
http://www.vhconsultants.com/index.htm
line 1: <?php
line 2: include(“/apache/htdocs/template1.inc”);

1
|
2
|
3
|
4
|
5
|
6
|
7