Watching The Web - Closing Time (
Page 6 of 6 )
And that's about it. I set up the
database for the pretty dark-haired girl, restarted the "cron" daemon on our
intranet server, and went back to work. This utility was a pleasant detour from
my daily development tasks - I learnt a little bit about HTTP, socket
connections, the MD5 algorithm and reading files over HTTP - and I hope you
enjoyed reading about it as much as I enjoyed developing it.
In case
you'd like to read more about the techniques discussed in this article, here are
a few links that I found helpful:
The HTTP 1.1 specification, at
ftp://ftp.isi.edu/in-notes/rfc2616.txtThe
MD5 Message-Digest Algorithms, at
http://www.faqs.org/rfcs/rfc1321.htmlThe
PHP mail() function, at
http://www.php.net/manual/en/function.mail.phpThe
PHP md5() function, at
http://www.php.net/manual/en/function.md5.phpUsing
remote files with PHP, at
http://www.php.net/manual/en/features.remote-files.phpUsing
PHP from the command line, at
http://www.php.net/manual/en/features.commandline.phpUntil
next time...ciao!
Note: Examples are illustrative only, and are not meant
for a production or professional services environment. Melonfire provides no
warranties or support for the source code described in this article. YMMV!