I'm currently in the process of creating a website.
Here's what I want to do.. I want a script to automatically update a link to be the latest comic.
Basically... I'll have a link that says "Dilbert", and when clicked on, it should take you to the latest dilbert comic, directly to the gif. The URL for any day's comic would be:
Is there any way I can do this with a PHP script? I have very little knowledge in PHP, so uber-noob terms would be appreciated.
I'm planning on hosting this site on my own machine, so I wouldn't mind making a C++ application for that instead: an application scheduled to run at 2AM that would retreive the URL of the latest comic and update it inside an HTML document on my hard drive.. Would that be a better alternative?
Question
HellBender
Hey guys,
I'm currently in the process of creating a website.
Here's what I want to do.. I want a script to automatically update a link to be the latest comic.
Basically... I'll have a link that says "Dilbert", and when clicked on, it should take you to the latest dilbert comic, directly to the gif. The URL for any day's comic would be:
http://www.dilbert.com/comics/dilbert/archive/images/dilbert[year][month][seeminglyRandomNumbers][date].gif
Today's comic is at http://www.dilbert.com/comics/dilbert/arch...40112199317.gif
Is there any way I can do this with a PHP script? I have very little knowledge in PHP, so uber-noob terms would be appreciated.
I'm planning on hosting this site on my own machine, so I wouldn't mind making a C++ application for that instead: an application scheduled to run at 2AM that would retreive the URL of the latest comic and update it inside an HTML document on my hard drive.. Would that be a better alternative?
Edited by HellBenderLink to comment
Share on other sites
4 answers to this question
Recommended Posts