At 17:28 07.03.2003, Gary spoke out and said: --------------------[snip]-------------------- >Hi >I've included the following in a php document: ><?php >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 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 the addition of two ones "11"s can anyone tell me >how to get rid of the ones? >(if I run anyfile.php by itself there are no "1"s) --------------------[snip]--------------------
This happens if the included file returns some value, in your case it seems to return "true". Remove the return <something> statement (you may simply "return;" if necessary) and the 1 will be history. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php