Zero Identity Forums - General - Programming - Date of LastChange in XML sitemap
Are you bored? Check out the unaswered threads!
|
swiftnomad
![]() Administrator Public Relations ZI Guru Joined: 04.04.2008 Last Seen: 10 year(s) ago Experience: 2895.48 Points: 405 |
|
| #1 Date of Last Change in XML sitemap on December 27 2009 01:39 | |
|
Hey fellow programmers- What I'm trying to do is create a sweet sitemap ( it's already done )
So if any of you ever done a sitemap or used xml before know this: <lastmod></lastmod> Now- what I want to do is have php tell my sitemap when the lastmod was done. Now, this is not a SQL database site- so how can I do this? Im thinking of creating a cronjob to spider the site and grant permission and write to the xml file? but, how do I ask when this file was last edited? USER: Hello Tech Support? I can't print... ME: Try cursive then <hang up> |
|
|
pyr0t3chnician
![]() Member Too Legit Advanced Analyst Joined: 04.01.2009 Last Seen: 10 year(s) ago Experience: 431.73 Points: 545 |
|
| #2 on December 27 2009 11:41 | |
|
http://php.net/manual/en/function.filemtime.php
Is that what you are looking for? Another way to do it all would be to FTP the site and you could grab the modify time as well: http://www.php.net/manual/en/function.ftp-mdtm.php Let me know!
|
|
Who is watching forums
| Users viewing this page: | Guests (1) |
| Users viewing the forum: | 0 |









