Re: [PHP] question



Riyadh S. Alshaeiq wrote:
Ok.. let me start by thanking you for replying to my question so soon.
Secondly, this the first time that I have posted a question here and I have
read some of the instructions and rules regarding posting a question that is
probably not a big deal to most programmers. Anyhow, you have just proved me
wrong. Sorry, I haven't met any Nigerian scammers so I cannot comment on
that.

Fair enough. But one of the "rules" you missed is that you should include the mailing list in replies. Please don't reply directly to me.

Now, lets talk about the issues.. Actually, the thing is this; I need the
functions for a remote server and the functions in the links are for local
purposes. There is a function that I have used which is posted in the
http://php.net/filesize discussion and it works fine but the result I get is
for a file's size on disk which is not what I am interested in, I need the
size of the file only. The same thing goes for the http://php.net/stat.

Ok, your original post did not say you were looking at remote files. How are you accessing the remote file... HTTP, FTP or something else?

If you are accessing it through HTTP then the comments on the filesize manual page contain good instructions for getting the Content-Length from the response. If you're using FTP then the ftp-size() function will give you what you want.

As far as the created and last modified time goes, if you're using HTTP there may be a header that gives the last modified date, but there is no way to get the created date. For FTP you can use the ftp_mdtm() function to get the last modified date, but again there is no way to get the created date.

Hope that helps.

-Stut
.



Relevant Pages

  • Re: edit files over ftp
    ... this is my first post in this list and also my first time using gnome / ... If I open a ftp connection ... but since I switch my desktop all cupple of months so I will try it next time I use gnome. ... I dont understand way, editing files over ftp isnt working by default, cause IMO this virtual filesystem thing is one of the most nice things on linux, so that I dont have to bother if one file is on my computer local network or anywhere. ...
    (GNOME)
  • Re: Create menu for instruction on how to use database when opened for the first time
    ... form the first time they open the database ... to read through instructions for how to ... on using HTML pages (not Microsoft's HTML Help) for displaying user help at ...
    (comp.databases.ms-access)
  • RE: The Most Oppressive Clause in Microsofts EULA...
    ... A work that is created (fixed in tangible form for the first time) on or ... > * Limitations on Reverse Engineering, Decompilation and ... > disassemble the SOFTWARE, except and only to the extent that ... > If you want to get some end-use out of these instructions, ...
    (microsoft.public.windowsxp.basics)
  • Re: Outlook over RPC
    ... Didn't see that option for the instructions until you pointed ... Here are the instructions for configuring RPC over HTTP. ... Server Management tool as "Connect to the Internet". ... : the client computer is it isn't XP SP2 or later: ...
    (microsoft.public.windows.server.sbs)
  • Re: System Locks up after kdevelop install
    ... ago for the first time. ... kde, apache2, ftp server, mail etc working and all was well. ... resizing a window. ...
    (Debian-User)