filemtime - PHP trouble getting file last modified date and filesize -


I have a problem getting file information from inside a folder.

Of course, I Using PHP I have different folders, which are all file types. Most mostly .txt and .html files

The code below shows the folder on my web page, as well as the files, but for some reason, I can not find the correct file date or size of the file date is definitely the date modified in the folder. These files are usually copied and pasted from any other location. I am planning to automatically drop batch file files into the directory.

Here's the code I'm using:

  & lt; Php function listFolderFiles ($ dir) {$ FFS = scanner ($ dir); Echo & lt; Ul & gt; '; Foreign Currency ($ FF $ FF) {If ($ FF! = '.' & Amp; $ FF! = '..') {echo '"; } Echo & lt; / Li & gt; '; }} Echo & lt; / Ul & gt; '; } ListFolderFiles ('exportReports'); ? & Gt;  

As you see in the code, I used PHP function file time. I have also used philmatim. The functions file time is coming back to the current date, while the filematam gives date of December 31, 1969.

The files are in the correct directory, if I am able to display the files on my page, and the user can download the file, why will not he recover the revised date? I understand that if the PHP file is not found, then it will return to date 1969. But it does not understand that I can get the file, so why did not I get the revised date?

I have tried to put single quotation and double quotation marks here:

  date ('FD') 

but right now Also, "Yes, I", FileTime ("$ ff") or Date ('FD, YH: I', File Time ('$ FF')) gives me the date 1969.

I have tried many other PHP functions. State (), touch (), Holstalt () and what I do not use.

The only thing with the Filesize function gives it the value of 0.

I do not understand.

Is there any alternative? Am I using it wrong? If so, what can I do to fix it?

Please help.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -