Site original : BohwaZ
Pour fêter la sortie de VroumVroumBlog 0.2.11 qui corrige une faille de sécurité dans la libxml, voici le nouveau site de VVB : http://dev.kd2.org/autoblog/.
Dans maintenant moins de deux semaines je retournerais en Australie, cette fois-ci pour une période d'un an.
Comme lors de mon précédent voyage, vous pourrez suivre mes aventures sur mon journal de voyage en ligne : Oz. Un an en Australie (et plus si affinités).
Ce blog sera donc un peu délaissé mais je continuerais à y poster quelques actus quand cela sera justifié.
I already told you about my little Fotoo Hosting project but now it's time to make the announcement of the first revamp of this software.
So this new 2.0.0 version has a new design, an easier admin-mode (just click on login), and a big improvement on picture upload as I got rid of the Flash applet which was used to resize picture before upload, so your bandwidth stays low. Now there is a HTML5 (Javascript + Canvas) client-side resize before upload, it works better than the Flash applet, and it's easier to use.
And another big news is that you can now upload a complete album of multiple pictures at one time, all the pictures will get listed under the same page.
So what are you waiting for?
As always, I like to keep things simple and light in my code so one day I was looking for a PHP library able to send mails directly via SMTP. I still find it amazing that PHP doesn't have this feature in its standard package but hey why not. So I looked and I found some libraries from bigger frameworks like PEAR and Zend. They are good, but the PEAR Mail package depends on Net_SMTP, which depends on Socket, which depends on... You get the idea.
I like things that interact directly with standard PHP features, things that don't make a new interface for everything. For example PHP has a fairly good socket API so why bother adding an abstraction layer here?
So in a couple of hours, including some RFC reading (did you know that you can include comments in email addresses, like for example bohwaz@(oh that seems nice ! (but not as nice as emails addresses like "oh, look !"@example.tld))other.example.tld, what a nightmare that would be to parse with a regexp¹), and here it is: just a light and simple PHP SMTP library: lib.smtp.php
It's licensed under the LGPL and it can handle SSL, TLS, and SMTP-AUTH. It only sends text/plain emails in UTF-8 but <troll>who cares about HTML emails anyway?</troll>
¹ Even if I'm really supportive of the fight Stéphane Bortzmeyer is leading against the badly written email validation checks, I have to admit that it's sometimes tricky to do things right. Like here I had to extract multiple addresses from one string, and it's not easy if you don't want to use a very big and slow regexp.