Problem w/ reading a txt file.

From: Date: Tue, 13 Sep 2005 04:31:50 +0000
Subject: Problem w/ reading a txt file.
Groups: php.general 
Request: Send a blank email to php-general+get-222240@lists.php.net to get a copy of this message
Problem w/ reading a txt file. The error I get is "Warning: opendir(/home/pudlz/public_html ): failed to open dir: No such file or directory " Here's my code:: $main = file('folders.txt'); $counter = count($main); for($i=0;$i<$counter;$i++) { if ($handle = opendir("$main[$i]")) { $b=0; } } It's reading and extra space at the end of all my lines. How do I prevent that? Andrew Darrow Kronos1 Productions www.pudlz.com

« previous php.general (#222240) next »