Re: Functions in included files cannot be called
| From: | DvDmanDT | Date: | Fri, 08 Aug 2003 15:31:11 +0000 |
| Subject: | Re: Functions in included files cannot be called | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21083@lists.php.net to get a copy of this message | ||
That you are supposed to include "top1.php" WITHOUT
"http://www.whatever.com/" as that is what
screws up...
--
// DvDmanDT
MSN: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"Krishna Murali-A19032" <murali.krishna@motorola.com> skrev i meddelandet
news:653138C25D8AD6118292000347080A37061297CD@zin05exm02.corp.mot.com...
> If index.php includes top1.php, there cannot be any calls to funstions
defined in top1.php from index.php
> Please let me know where I went wrong
>
> /////index.php
>
> <?php
> include("http://localhost/dss-tee/top1.php");
> setHeader('title');
> ?>
>
> //////top1.php
>
> <?php
> function setHeader($siteTitle){
> echo $siteTitle;
> return true;
> }
> ?>
> > -----Original Message-----
> > From: Mikey [mailto:frak@totalise.co.uk]
> > Sent: Friday, August 08, 2003 3:48 PM
> > To: php-windows@lists.php.net
> > Subject: RE: [PHP-WIN] not able to pass values to OR access global
> > values by the included file
> >
> >
> > Wouldn't it be easier to do:
> >
> > $action = 1;
> > include ("file.php");
> >
> > HTH,
> >
> > Mikey
> > -----Original Message-----
> > From: Krishna Murali-A19032 [mailto:murali.krishna@motorola.com]
> > Sent: 08 August 2003 10:23
> > To: php-windows@lists.php.net
> > Subject: [PHP-WIN] not able to pass values to OR access
> > global values by the
> > included file
> >
> >
> > when i include php files i would like to pass values to the
> > included file
> > like
> >
> > include("file.php?action=1");
> >
> > I am not able to do this. I have tried setting cookies and
> > try to acces the
> > cookies from file.php. It didn't work.
> >
> > Can anyone suggest me a way out of this?
> >
> > Thanks
> > Murali
> > S. Murali Krishna
> > Software Engineer
> > Software Technology Group (SofTec)
> > Mission Statement : To be the BEST in ALL the roles that I play.
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >