LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP about functions (https://www.linuxquestions.org/questions/programming-9/php-about-functions-259310/)

djgerbavore 11-25-2004 05:54 PM

PHP about functions
 
i was wondering if there is anyway to make a file with function, and then other scripts could call them. like making a gobal function file.


for example:
script 1;
printHeader();

script 2:
printHeader();


where printHeader() in a file called function.php or something.

I know they have include files, but that isn't want i want.

Is this pos.ible in php or is include files the only way to go

thanks
djgerbavore

naflan 11-25-2004 07:14 PM

I know of no other way but
include()
require()
etc.


All times are GMT -5. The time now is 01:38 AM.