2017-05-10, 22:01:58
(2011-04-24, 11:02:26)mikeh Wrote: You could always use the php filemtime() function
I'd like to ask about using the filemtime() function in GetSimple CMS.
I test my web on localhost (on Linux) for now and want to know the last modification time of a page that has the slug "important". After some attempts, I have discovered that only the absolute filesystem's path to the file in question works (" filemtime("/var/www/html/tmt/data/pages/important.xml") "). But this naturally will stop working after moving the web to a webserver. I tried to write a relative path to the file (in relation to what starting point? - the script is in the file theme/Innovation/template.php) or an absolute path using "http://localhost/" but I haven't succeed. So what path should I set in a production webserver?