Serve a Directory with PHP
Many developers have a giggle at PHP, even looking down at the language, but let's be honest: most of our blogs are powered by it (WordPress) and it's a great language to dabble around with. I cut my teeth on PHP, though I prefer to avoid PHP these days.
But when I need to experiment with a simple PHP coding task for the sake of a blog feature, I look for the simplest possible serving solution to accomplish that feat. Luckily PHP provides me a quick solution for testing:
php -S localhost:8888
The command above allows for serving of a directory via PHP, thus allowing for a simple PHP "site" to be served enough to confirm that my code testing works properly.
Serving a directory with PHP, python, or Node.js ... the same problem solved for different languages!
As much as developers now loathe Flash, we're still playing a bit of catch up to natively duplicate the animation capabilities that Adobe's old technology provided us. Of course we have canvas, an awesome technology, one which I highlighted 9 mind-blowing demos. Another technology available...
attachEvent. Times have changed but there are still a few functions each developer should...
Regardless of our position on vendor prefixes, we have to live with them and occasionally use them to make things work. These prefixes can be used in two formats: the CSS format (
-moz-, as in
-moz-element) and the JS format (
navigator.mozApps). The awesome X-Tag project has...