Getting HTTP headers with Lynx

Lynx is a command line web browser which I often use for checking the behaviour of redirection headers and content types in a web page’s http headers. This first post shows how to get the headers and the second post how to set the user agent.

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 point they installed a version of Nginx from source, and I wanted to be able to install an updated version from source using the same command line arguments for the configure command.

Javascript frame buster

It’s really annoying when instead of linking directly to your site in a full browser window another site links using an <iframe> or <frameset> <frame>. There’s a really simple method to bust out of frames using Javascript but as I discovered yesterday if you also use iframes in your own site the commonly used frame buster needs some improvement.

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 you’ll often find the @ symbol is present on the on-screen keyboard in email fields sometimes, but not always. Use type="email" instead of type="text" in the input field and it should show the at symbol on the on-screen keyboard.

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 show up and I kept getting the response "The following paths are ignored by one of your .gitignore files" but I didn't have any .gitignore files, as far as I could tell. It turned out that I had rules in my global gitignore so this post documents where to look when you get this error.

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 few articles here showing how to do it. None of them have really been all that satisfactory and so a little earlier this year I started again from scratch. I've posted here what is a work-in-progress due to requests from several people. It's not complete but it does work.

Categories PHP