Page 1 of 1

importing php funtions

PostPosted: Tue Mar 21, 2006 8:02 am
by Mr. Rogers
is it possible to call a php function by linking it from another file?

for example:

index.html
page_header(); <- from functions.php


functions.php
print<<<_HTML_
<div id='header'>
header here
</div>

PostPosted: Tue Mar 21, 2006 6:06 pm
by Mithrandir
You should be able to do something like this:

Code: Select all
include('functions.php');
page_header();

PostPosted: Tue Mar 21, 2006 7:25 pm
by Mr. Rogers
alright, thanks. i'll try it