Replacing text with sed

To replace all occurences of string1 in a file with string2 : $ sed -ri "s|string1|string2|" some_file.txt

May 16, 2007 · 1 min · Dave Perrett

Format XML with PHP

Courtesy of TJ at devnet ...

April 5, 2007 · 1 min · Dave Perrett

Installing MySql/PDO for PHP

I was getting something like this trying to run an application built on the Zend Framework : ...

April 2, 2007 · 1 min · Dave Perrett

Cake actions from the terminal

Edit app/webroot/index.php and change the lines that read like : if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { } else { $Dispatcher=new Dispatcher(); $Dispatcher->dispatch($url); } to something like : ...

February 7, 2007 · 1 min · Dave Perrett