Hidden Features of PHP – Ilia Alshanetsky

Ilia put the slides of his talk on 06 Jun 2012 in Toronto named “Hidden Features
of PHP” online. He lists features, functions and extensions he thinks are hidden gems and shows examples of them. Slides are available at http://ilia.ws (PDF).

I scanned through and here is his selection as an apetizer:

Features and Functions

He starts with the __DIR__ constant followed by some other features like ternary operators, goto, encryption functions, double encoding and date parsing. Then stream_resolve_include_path (especially useful if you write your own wrappers), Session ini magic (with some focus on security), Better Hashing and some SPL FS Tricks (Yay, check those out, you need to know these).

That are a lot of slides for features, for example there’s one in between about

mail logging

The mail.log and mail.add_x_header ini directive for example.

The other part of the slides are about extensions. Ilia showcases some of them:

igbinary – The awesome PHP Serializer you should use!

http://github.com/igbinary
(I’m sure Ilia likes this one, I wonder if Facebook is d’accord with him.)

FileInfo – A reliable mechanism for identifying files

http://php.net/book.fileinfo.php

StatGrab – A system informatics extension

http://pecl.php.net/statgrab

MailParse – A very good mechanism for parsing complex e-mails

http://pecl.php.net/mailparse

PHP-Excel – An interface to LibXL library

https://github.com/iliaal/php_excel

xhprof – Light weight PHP profiler designed for in production use

http://pecl.php.net/package/xhprof
http://github.com/preinheimer/xhprof


Via: Planet PHP / Slides from PHP-GTA User Grouping Meeting (by Ilia Alshanetsky; 06 Jun 2012)

Advertisement
This entry was posted in Linked, PHP Development, PHP Development, Pressed, Tools and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.