Disable 404 Header Response for WordPress
I have a numbers of project running on WordPress and each of it extend the functionality of WordPress using plugin or integration with 3rd party application (which I would be able to share as for now). However, WordPress tend to send 404 header response to the browser which is may break your code or disable access to the 3rd party application.
Avoid Your E-mail From Becoming Spam
Let forget about mail() function in PHP, as most emailservers today will eventually mark e-mails sent using this function as spam. But fear not, there are better way to send e-mail and today and one of it is PHPMailer, it support e-mail sending using both method (mail() or SMTP method) but our problem will not be solve if we still using mail(), the use SMTP is the way to go by minimizing the possibility of your e-mails to end up in spam/junk folder.
ACL in PHP
Slide from PHP.net.my Meetup 2007.
Using JavaScript to Ping
Have you ever wish to there was a way to ping another site using pure JavaScript? Well there is a way now by using JavaScript and an images. The method I'm going to share with you today isn't something new in fact most of us who're familiar with JavaScript may have come across this method in the past. However the a limitation to this method as we need to image URI as a ping destination for the test.
Integrate SQL Query with BBCode
Some of us might be familiar with BBCode, it's widely used in many Message Board and in fact in ChronoSight.CMS commenting as well.
The lightweight markup language used to format posts in many message boards. It is also called forum codes. The available tags are usually indicated by rectangular brackets surrounding a keyword, and they are parsed by the message board system before being translated into a markup language that web browsers understand, usually HTML or XHTML. — Wikipedia
Today, let's utilize BBCode structure to dynamically parse data fetched from the database using BBCode. Now this might sound something like MVC where we separate presentation from process but I would believe this is a very simple method of doing MVC. The best thing about this tutorial is that you can customize it not just database query but also anything as long as it's in an Assiociate Array format. Let put that aside and move on to the tutorial (if you find it relevant in your development).