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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php