filectime problems
| From: | Kevin Glick | Date: | Wed, 01 Dec 2004 20:00:53 +0000 |
| Subject: | filectime problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-203253@lists.php.net to get a copy of this message | ||
I'm running PHP 5.0.2 on IIS 6/Windows Server 2003. Below is a snippet of
the code from a script that looks into the "news" directory for files ending
in .txt. After it finds the files, I want to get the creation time of each
file. The script finds all the files (in this case "blah.txt", but
filectime gives me an error:
"Warning: filectime() [function.filectime]: stat failed for blah.txt in..."
(snip)...
$dir = "../news/";
$dh = opendir($dir);
while (($filename = readdir($dh)) !== false) {
if (strpos($filename, ".txt")) {
$time = filectime($filename);
...
Any ideas why? The user that the webserver runs as, has full permissions to
the "news" directory, and all the files in it.
Kevin Glick
ITS Manager
Sterling Business Forms
keving@sbfnet.com