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!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |