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.txt The MD5 Message-Digest Algorithms, at http://www.faqs.org/rfcs/rfc1321.html The PHP mail() function, at http://www.php.net/manual/en/function.mail.php The PHP md5() function, at http://www.php.net/manual/en/function.md5.php Using remote files with PHP, at http://www.php.net/manual/en/features.remote-files.php Using PHP from the command line, at http://www.php.net/manual/en/features.commandline.php Until 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!
blog comments powered by Disqus |