Re: Calling a Specific Function in a Remote File

From: Date: Fri, 02 May 2003 11:31:37 +0000
Subject: Re: Calling a Specific Function in a Remote File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146098@lists.php.net to get a copy of this message
Have you tried <html code> <?php include('theFunctionFile.php'); nameofthefunction(); ?> <more html code> ? chris@wakeboarder.com wrote:
Hi all, I have purchased a set of PHP scripts that build a classified ad website. They include various functions, two of which create navigation bars. Everything works fine within the application, however, I have implemented a home page that is external to the application and would like to include these navigation bars within that home page. I know the function names that generate the navigation bars and I know the file where they reside. Is it possible for me to call those two functions specifically? If so, what is the syntax? The bulk of the home page is in HTML. I have designated a table row in which I intend to place the PHP code that will call the remote functions. Another twist to this is that the navigation bars dynamically change based on data in a cookie (logged in/logged out). There is a file that is responsible for managing these cookies. Is handling this as simple as including that file? Can anyone help me with this? Thanks! Chris ---------------------------------------------------------------- This message was sent from Wakeboarder.com Free E-mail. For wakeboarding information visit http://www.wakeboarder.com.


« previous php.general (#146098) next »