Re: [PHP] require_once adds a "1"

2003-03-08 Thread James
"Gary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for your response James! > but still I must be doing something wrong the "1" is a persistent little > bugger. Have you any tips on how to rewrite: > > echo @ require_once("topten.php"); > ?> > using the ob_methods? > A

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Gary
Ernest E Vogelsinger wrote: > At 20:19 07.03.2003, Gary said: > Rewrite this to just > require_once('topten.php'); Thanx Ernest! that does the trick Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Ernest E Vogelsinger
At 20:19 07.03.2003, Gary said: [snip] >Thanks for your response James! >but still I must be doing something wrong the "1" is a persistent little >bugger. Have you any tips on how to rewrite: > >echo @ require_once("topten.php"); > ?> >using the ob_methods? -

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Gary
Thanks for your response James! but still I must be doing something wrong the "1" is a persistent little bugger. Have you any tips on how to rewrite: using the ob_methods? Again thanx for your response Gary James Holden wrote: > The '1' is received simply because your requirement clause echoed t

Re: [PHP] require_once adds a "1"

2003-03-07 Thread James Holden
The '1' is received simply because your requirement clause echoed the result to the page. include, require and include_once all return boolean results of 1 or 0 which indicates a successful loading of said include. If you want to suppress the output of an include use ob_ methods which prevent

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Ernest E Vogelsinger
At 17:28 07.03.2003, Gary spoke out and said: [snip] >Hi >I've included the following in a php document: >echo @ require_once("anyfile.php") >> >and it works exactly as I expect except at the end of the included document >theres a single "1" displayed. I've n

Re: [PHP] require_once adds a "1"

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 18:28, Gary wrote: > Hi > I've included the following in a php document: > echo @ require_once("anyfile.php") > > use only if you use echo require_once("somefile.php"); it will include the file and then echo 1 witch is the return value of require_once; > and it works exact

[PHP] require_once adds a "1"

2003-03-07 Thread Gary
Hi I've included the following in a php document: and it works exactly as I expect except at the end of the included document theres a single "1" displayed. I've noticed also that if I include a document in the included document the end result will be the document I want exactly as I want it with