filectime problems

From: Date: Wed, 01 Dec 2004 20:31:03 +0000
Subject: filectime problems
Groups: php.windows 
Request: Send a blank email to php-windows+get-25105@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

« previous php.windows (#25105) next »