Multiple String Search

grep is a great tool for searching multiple files and directories for a string - but what if we have a list of strings we are looking for? A great solution for this is to enter the strings into a file - one per line. We will...

Background Server FTP Transfer

I had a lot of files to transfer, little bandwith from my laptop and limited timed. Can I have my server transfering the files in the background? Yes. My VPS has more bandwith than my current location. I needed to FTP the files, a little research and...

Fun Command Line Variables

Since my last post was such a success I've decided to continue the series. Command Line Variables You have a bash script that needs to FTP somewhere and want to test part of the script works outside of the whole script? Run it in...

Fun OSX Terminal Commands

I've put fun - open is fun in that a new window pops up over your terminal showing you the files you are browsing visually, and drag-ablly. History is just useful! To open a finder window in the current directory you are browsing in terminal, use: ...

Public, private and protected in PHP

Not the most interesting post but essential for OOP PHP development: public scope to make that variable/function available from anywhere, other classes and instances of the object. private scope when you want your variable/function to be visible in its own class only. protected scope when...