Re: include statement giving me hives! - SOLVED

From: Date: Thu, 17 Jul 2003 15:55:43 +0000
Subject: Re: include statement giving me hives! - SOLVED
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-155641@lists.php.net to get a copy of this message
rtrim () solved the issue. There was a newline sitting at the end of the variable and messing it up! Thanks for all your help! "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:3F166F6C.5010302@webglobe.sk... > DougD wrote: > > I am new to all this, but here is the basic code: > > > > $link_titles = file('links/master.txt'); > > $links_include = $link_titles[$point]; // path to directory > > include $links_include; > > > > If I echo the value of $links_include just prior to the include() function > > it contains what I would expect it to contain > Except it contains newline at the end. Get rid of the newline and it > should work. >

« previous php.general (#155641) next »