Mac OS X Server Rejects Mail with No Subject Line

Mac OS X Server Rejects Mail with No Subject Line

Is Mac OS X Server 10.6 (Snow Leopard) rejecting your e-mail messages which lack a subject line? Mine was, and so does the default setting on Snow Leopard Server. Here’s a quick fix: 1) First, stop the mail service. 2 Now, you’ll want to edit the header_checks file that’s utilized by postfix. /^subject: *$/ REJECT [...]

PHP: Session Timeouts

PHP: Session Timeouts

Defining session timeout thresholds for PHP scripts is a security “must”. I recommend that you consider the purpose of your script before applying a session timeout function. For instance, if your site has a secure login and security requirements, it’s important to include the timeout function. However, it’s often an inconvenience to end-users. Use the [...]

Clear Tower Consulting

Clear Tower Consulting

Looking for a company to help you manage your web development project? Need a website? Are you a looking for eLearning or online training? Clear Tower Consulting is a progressive, innovative firm which provides custom consulting solutions. Take a look at their services below (Excerpt from ClearTowerConsulting.com) eCommerce Solutions If you’re company sells products and [...]

Use PHP to Backup your MySQL Database

Use PHP to Backup your MySQL Database

If you don’t backup your databases regularly, shame on you. You should! The code below will allow you to generate a backup as often as you’d like. It only makes sense to run this via a CRON job. This is pretty easy to do and you can set the frequency as you wish. The backup [...]

Return Random Record via MySQL

Return Random Record via MySQL

There are many practical and frequently used methods requiring a random record to be called. For instance, when you see “featured profiles” or random customer comments on a website, they are most likely using a function to call a random record. In addition, this function can allow you to display data in a random order. [...]

PHP: Preventing typical XSS attacks

PHP: Preventing typical XSS attacks

XSS attacks plague beginner programmers and are a significant vulnerability for commercial web hosts & website operators.  XSS means “cross-site scripting“.  These exploits work on the client side. Often, hackers put some type of JavaScript in content that users submit that allow them to steal the data from a cookie.  XSS attacks are pretty difficult [...]

PHP/AJAX: Call PHP function by clicking a link

PHP/AJAX: Call PHP function by clicking a link

This tutorial demonstrates how to execute an external PHP function by clicking a simple link within HTML.  The method uses AJAX so that the page doesn’t refresh and doesn’t require a form submission. 1) Paste the following code into a .js file.  For demonstration purposes, we have named it “ajax_click.js”. /* * ajax_click.js * chriscook.me [...]

“Lock Desktop” – New Mac OS X App

“Lock Desktop” – New Mac OS X App

I’ve uploaded one of my first applications for a Mac. It’s extremely easy to use. The tool allows you to lock your desktop when you’re away from the computer and requires a password when you get back.  This is something you can run on demand, instead of waiting for a screen-saver, or logging off.  Lock [...]