Re: hiding the contents of an included file on the command line

From: Date: Mon, 26 Jun 2000 23:23:13 +0000
Subject: Re: hiding the contents of an included file on the command line
Groups: php.general 
Request: Send a blank email to php-general+get-3223@lists.php.net to get a copy of this message
Addressed to: "Bjorn Sodergren" <sweede@gallatinriver.net> php-general@lists.php.net ** Reply to note from "Bjorn Sodergren" <sweede@gallatinriver.net> Mon, 26 Jun 2000 02:08:06 -0500 > > Im writing some command line based php scripts. and i would like to > keep all the major config data in a seperate file. > > however, when i run the script, it also displays the contents of the > include(), read(), require() file to the display. i also tried > putting @include(); , etc.. but that didnt work. > > is it possible to do that? thank bjorn Did you start out your included files with <? and end them with ?> Even though these are command line based scripts, they still have to follow php rules, and php rules say that anything outside <? ?> is sent to stdout without being parsed. Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#3223) next »