Re: Calling a Specific Function in a Remote File
| From: | Mark | Date: | Tue, 06 May 2003 12:55:03 +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-146511@lists.php.net to get a copy of this message | ||
I'm coming into this late, but any chance there's something like:
exit;
somewhere in the include()'d file?
--- chris@wakeboarder.com wrote:
> 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.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to
defend everyone else's right to the same thing.
***************************************
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com