Be a Supporter!

including php script with functions

  • 131 Views
  • 2 Replies
New Topic Respond to this Topic
untitled
untitled
  • Member since: Jul. 17, 2000
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
including php script with functions 2001-08-08 00:40:25 Reply

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
Response to including php script with functions 2001-08-08 03:33:36 Reply

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>
Response to including php script with functions 2001-08-12 07:56:31 Reply

lol