note 39800 deleted from function.ob-start by nlopess

From: Date: Wed, 11 Feb 2004 17:56:18 +0000
Subject: note 39800 deleted from function.ob-start by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65019@lists.php.net to get a copy of this message
Note Submitter: webmaster@pzfn.com ---- If for some reason you want to store an include in a variable you might have noticed that the followinf doesn work... <? $var = include("file"); ?> A work around for this is... <? ob_start(); include("file"); $var = ob_get_contents(); ob_end_clean(); ?> I hope that helps somebosy... it sure would have helped me...

« previous php.notes (#65019) next »