Re: Required files not being parsed properly...

From: Date: Tue, 07 Oct 2008 14:32:08 +0000
Subject: Re: Required files not being parsed properly...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-281534@lists.php.net to get a copy of this message
Eric Butera wrote: > On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson > <stephen@thelonecoder.com> wrote: >> OK .. I am upgrading to PHP5 on a clients box, and after doing so I have >> run into the problem that files that get brought in by a require statement, >> or include, end up just getting dumped to the browser as text.. >> >> For instance : >> >> require("/home/tnr/incs/tnr_db.php"); >> $db = new mysql(); >> >> Produces what you see here : >> >> http://www.thumbnailresume.com/index.html?allow=1 >> >> Any one have any thoughts on what is going on? >> >> -- >> Stephen Johnson c | eh >> The Lone Coder >> >> office: 562.366.4433 >> fax: 562.278.0133 >> >> http://www.thelonecoder.com >> continuing the struggle against bad code >> >> http://www.fortheloveofgeeks.com >> I¹m a geek and I¹m OK! >> -- >> >> >> >> > > > > $user_id = $_COOKIE['user_id']; > > $logFile = "/home/tnr/query_logs/tnr.".$user_id.".query.log"; > > uh oh... Did you scare the OP or something? The page isn't available any longer... :) -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#281534) next »