Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fstat and stat not returning time I want

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I'm copying files from windows to unix using a samba share

if I ls -l the directory the timestamps on the files are as expected

however, if I run either a stat or an fstat on the files in php the times all come out to be the time the file was copied to the share.

Can anyone think of a way in PHP to get the timestamps shown via ls -l without actually parsin up ls -l?

Thanks.
 
eeep, nevermind... bonehead mistake... was stat the directory not the file.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top