inserting PHP code into PHP document
| From: | PR | Date: | Wed, 15 May 2002 00:18:42 +0000 |
| Subject: | inserting PHP code into PHP document | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97642@lists.php.net to get a copy of this message | ||
Hi All:
Many of my pages has similar lines of code that I would like to group
and have it inserted when required:
if ($HTTP_SESSION_VARS[first_name]){
$header='...';
....
} else {
$header='...';
};
I placed the code in separate file and tried implode but I think I am
doing something wrong.
How can I make it in some type of module and insert it in php code when
required?
Thanks
Paul