$dh = opendir($dir);
while ($filename = readdir($dh))
if($filename != "." && $filename != "..")
$files = $dir . "/" . $filename;
while($now < $reached)
include($post);//<THIS IS THE PROBLEM!
The above code is supposed to go through a directory and include all the files inside. The problem is that it says its cant include the first file, which is aparrently an empty string.
Warning: listposts() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
but when i echo the contents of $post, it is a working path for the second file.
whats going on? theres only one file in there!
thanks for any help guys!