verification of file exisit in upload folder |
8/7/2007 12:04:57 PM |
PHPRunner General questions | |
R
rgman author
In need a quick to see if a file exists in the upload folder. I have 5000 pdf files that exist in the upload folder and the amount of files are going to double in the next 2 months. The file names are being bulk inserted into the column set to file / image. My web site is working perfectly. But I would like to have a check box that gets populated on the screen so I can quickly see if the file name on file/image column has a corresponding file in the upload folder. It would also be nice to be able to run a report that tells me which files are not linked. |
|
J
|
Jane 8/8/2007 |
Hi, $value = GetData($data,"File", "Document Download"); $span="<span "; $span.="id=\"edit".$recno."_File\" "; $span.=">"; $value = $span.$value."</span>"; $row[$col."File_value"]=$value;
$value = GetData($data,"File", "Document Download"); $span="<span "; $span.="id=\"edit".$recno."_File\" "; $span.=">"; $value = $span.$value."</span>"; if (file_exists("files/".$data["File"])) $row[$col."File_value"]=$value; }
|