including php script with functions
- untitled
-
untitled
- Member since: Jul. 17, 2000
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
On my web site i have a top include which is on every page, inside this top include i have put a user defined function. But when i include the top include in a script and call that function in the same script it says "Fatal error: Call to undefined function:". I know my function works because i've tested it, so shouldn't everything work dandy or am i missing something?
- untitled
-
untitled
- Member since: Jul. 17, 2000
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
At 8/8/01 12:40 AM, untitled wrote: On my web site i have a top include which is on every page, inside this top include i have put a user defined function. But when i include the top include in a script and call that function in the same script it says "Fatal error: Call to undefined function:". I know my function works because i've tested it, so shouldn't everything work dandy or am i missing something?
nevermind i solved it by going:
include($DOCUMENT_ROOT . '/templates/top.php');
instead of
include("http://www.daflash.com/templates/top.php");
<deleted>

