my aim is to store all frequently used functions of a certain type in a file. include.php
here is an example:
<<<IN FILE: include.php>>>
<?php
function HelloWorld()
{
echo "Hello World";
}
?>
then
<<<IN FILE: main.php>>>
<?php
include "include.php";
HelloWorld();
?>
but whenever i run the page, all i get is an error saying that HelloWorld was not defined. How can i store functions in include files, and use them in other pages?
thanks