Re: filemtime problem

From: Date: Fri, 18 Oct 2002 16:15:53 +0000
Subject: Re: filemtime problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120533@lists.php.net to get a copy of this message
I don't understand the opendir($fullpath . 'files') line. Your example filename as not 'files' in it, so how could it come from a directory that ends in 'files' ? On Fri, 18 Oct 2002, Todd Cary wrote: > In the "test script" below, $unixtime is false. What am I missing? > > <?php > include "test.inc"; > if ($handle = opendir($fullpath . 'files')) { > while (false !== ($file = readdir($handle))) { > if ($file != "." && $file != "..") { > //echo "$file" . " "; > echo ($fullpath . $file . "<br>"); > // An example of a file name is > "/var/www/html/aralbum/php/artscard_dump.txt" > $unixtime = filemtime($fullpath . $file); > if ($unixtime) echo (date("Y m d", $unixtime) . "<br>"); > } > } > closedir($handle); > } > ?> > > -- > Ariste Software, Petaluma, CA 94952 >

« previous php.general (#120533) next »