Automatic parsing

All morning I’ve been working on php to retrieve the latest post from the blog.html to the front page since I don’t want to put all entries on my front page. It wasn’t as easy as I thought it would be. I mean, I have an idea of how to do it but wasn’t able to figure out the codes right till I found this page that was really helpful. I want to give credits to the man who shared the codes, I was about half way in the codes and this page basically answered my other half problem, which was to capture the line number and keep going till the last line number that you want to parse.

Now, it’s working beautifully but one more thing remains to be solved, which is to tell the cpu to select the latest post in the archives folder. Right now, the filename is hard-coded. Hope it wouldn’t take as long as this one.