Code: Select all
<?
$root = "DIR";
if ($handle = opendir($root)) {
while($file = readdir($handle)) {
if ($file != "." && $file != ".." && $file != "this.txt") {
$file2 = substr("$file", 0, -4);
etc etc etc
balh balh balh
}
?>it does't read "Update.txt" cos of
Code: Select all
if ($file != "." && $file != ".." && $file != "this.txt") {that way i don't have to add more files every time i update.
thanks in adv