Linux, Apache, Nginx, MySQL, Javascript and PHP

Linux/Unix/BSD

Setting the user agent in Lynx

Lynx is a command line web browser which I often use for checking the behaviour of redirection headers and

OSX

Disable the screenshot shadow on Mac OS X

When you take screenshots on Mac OS X there’s a shadow around the screenshot by default. This post shows

Linux/Unix/BSD

Getting HTTP headers with Lynx

Lynx is a command line web browser which I often use for checking the behaviour of redirection headers and

Get the arguments used to configure Nginx source
Nginx Web Server

Get the arguments used to configure Nginx source

I’m currently managing an images server for a customer that uses Nginx on an old Debian 5 install. At some

Javascript

Javascript frame buster

It’s really annoying when instead of linking directly to your site in a full browser window another site links

HTML And CSS

Show the at symbol on mobile device on screen keyboard

If you’ve used a mobile device (e.g. iPhone, iPad, Android phone or tablet) to fill out web forms

Applications

The following paths are ignored by one of your .gitignore files – but there isn’t one

When trying to add some files to an images directory under git source control, my new files wouldn't

PHP

PHP email message class for extracting attachments

I've done a bit of work in the past extracting attachments from email with PHP and posted a

PHP

Extract inline image attachments from an email with PHP

Applications

Remove ads at the top of Gmail

Gmail by default shows ads above the list of emails. It’s easy to switch these off but they’re not

MySql

Cannot load from mysql.proc. The table is probably corrupted

I mistyped the name of an internal MySQL function in some code this morning and got back the error

PHP

PHP $_SERVER variables – CLI via SSH vs cron

I have a number of batch processes that run using PHP as the command interpreter, and discovered after making

OSX

Free inactive memory on Mac with FreeMemory

I’ve posted in the past about using the "purge" command line utility on Mac

Flush the exim mail queue
Email Servers

Flush the exim mail queue

I have the exim mail server running on one of my customer’s webservers. Their internal mail server hadn’t been

PHP

Fetch message parts into a flat array with PHP IMAP

The PHP IMAP functions imap_fetchstructure and imap_fetchbody are used to work out the structure of an email

PHP

How to use static variables in a PHP function

There may be times when a static variable is needed in a PHP function; static variables maintain their value

Connect to SQL Server through an SSH tunnel
Microsoft SQL Server

Connect to SQL Server through an SSH tunnel

I recently needed to connect to a Microsoft SQL Server which I couldn’t reach directly, but which is visible

Applications

Creating an SSH port tunnel with PuTTY

This post shows how to do set up a port tunnel using the PuTTY SSH client on Windows. I

1 9 10 11 12 13 50