Re: Calling a Specific Function in a Remote File

From: Date: Mon, 05 May 2003 20:08:03 +0000
Subject: Re: Calling a Specific Function in a Remote File
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-146446@lists.php.net to get a copy of this message
I tried that, and also this: include('theFunctionFile') $call=new class(""); $call->nameofthefunction(); I've also tried the include at the top of the code (outside of the HTML tags) with a separate function call at the point I want the function to be run. In all cases, wherever I place the include of 'theFunctionFile' it runs that page and disregards all following code. Any other ideas? Is this behavior somehow forced by the included page? Is there a way to edit it out?? Thanks, Chris Marek Kilimajer <kilimajer@webglobe.sk> said: > 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. > > > > > > > > > > -- ---------------------------------------------------------------- This message was sent from Wakeboarder.com Free E-mail. For wakeboarding information visit http://www.wakeboarder.com.

« previous php.general (#146446) next »