Revised - Call a Function from a Local File
| From: | chris at wakeboarder dot com | Date: | Wed, 07 May 2003 00:04:47 +0000 |
| Subject: | Revised - Call a Function from a Local File | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146597@lists.php.net to get a copy of this message | ||
Hi all,
This issue was originally posted as Calling a Function from a Remote File.
I've since tried a few things and im still having troubles. Help!?
I've built my own home page that I'm hoping will serve as the "front end" of
an application I purchased. I'd like to "call" some functions from the
application that build a couple of menu bars.
I've tried including the file that the functions are in, but wherever I place
the include it draws the included file and disregards all of my code after
the include.
I've tried several different methods of calling the function, including:
<?
include("file.php");
$call = new class("");
$call->function();
$call->function2();
?>
and
<?
include("file.php");
function();
function2();
?>
and also placing the includes at the beginning of the page with the function
calls at the position I want the menu bars.
In all cases, where I place the include is where it starts drawing the
included file and disregarding my code.
Any ideas??
Chris
----------------------------------------------------------------
This message was sent from Wakeboarder.com Free E-mail.
For wakeboarding information visit http://www.wakeboarder.com.