Functions in included files cannot be called

From: Date: Fri, 08 Aug 2003 10:22:20 +0000
Subject: Functions in included files cannot be called
Groups: php.windows 
Request: Send a blank email to php-windows+get-21080@lists.php.net to get a copy of this message
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 >

« previous php.windows (#21080) next »