Jump to content

File Info

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
falco85

falco85

    Programmer

  • Members
  • PipPipPipPip
  • 105 posts
How do I get the information of a file such as Date, Size, etc. just like if you did a ls -la in Linux?

#2
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Each one has its own command. Some are obvious:

file size: filesize($filename)
file modified: filemdate($filename)
file exists: file_exists($filename)

ect, ect....

#3
Ronin

Ronin

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 309 posts
Yup, plan and simple. I always go to php.net and search for what I need. For instance, search for file size or file modified.

#4
businessman332211

businessman332211

    Newbie

  • Members
  • Pip
  • 4 posts
You can either find information on one, using a third party script, or you can use something simple, like create one, they wouldn't take long to make something substantial