Is there any to timestamp articles with PHP without using a database?
I know little PHP, but even less MySQL, and my host doesn't allow remote database connections (for example, from Dreamweaver), so in addition to being confusing to me, database management is impractical. Is there any way to put a timestamp on an article automatically, without resorting to MySQL tables?
10 Months Ago
Last Updated
Related Article: get last date modified file in php
is a PHP discussion thread by cussel that has 1 reply, was last updated 4 months ago and has been tagged with the keywords: get, last, date, modified, file, in, php.
Patiodude
Junior Poster in Training
54 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
If you're using flat files to store information, linux stores the creation date of the file and you can use that, but I assume that if you don't have access to a database you're not going to have access to the shell either.
Best suggestion would be for the first line of the article to be its date ;) Even better suggestion would be to find a new host.
Dani
The Queen of DaniWeb
21,344 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 367
Skill Endorsements: 122