Re: Strange "1" after include

From: Date: Mon, 23 Sep 2002 07:54:15 +0000
Subject: Re: Strange "1" after include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117245@lists.php.net to get a copy of this message
<?=include(“menu.inc”)?> tells PHP to echo out the result of include(“menu.inc”), which just happens to be a success code (1). The second for simply includes the file without echoing out anything. Chase On Mon, 2002-09-23 at 02:45, César Aracena wrote: > Hi all, > > I’m wondering why does a number 1 appears in the output after the > included text has been showed. I have a menu file for including and I > just put <?=include(“menu.inc”)?> but then the output shows: > > Back to Index > 1 > > and I don’t have that number in either my script nor my include file. If > I put: > > <? > Include (“menu.inc”); > ?> > > it shows normally without the 1… Why is that? > > Thanks, > > Cesar Aracena <mailto:webmaster@icaam.com.ar> > On Dial-Up > CE / MCSE+I > Neuquen, Argentina > +54.299.6356688 > +54.299.4466621 > -- PGP Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#117245) next »