In article <000c01c1fba6$12a4aed0$01000001@pawel>, [EMAIL PROTECTED] says... > 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
You should look at include() or require() -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php