Hi guys, how to get date modified document in process upload?
ex: test.txt 30/11/12 02:13
how to get this date 30/11/12 02:13 while upload this document?
i've try like this but the result not matching with real date modified

$filename = $_FILES['uploadedfile']['name'];
echo date("d m Y H:i:s",filemtime('/' . $filename));

You can try stat(). But since the file is uploaded, the file is recreated, so modified and created should be the same.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.