Wordpress : Safari

If you’ve been trying to write posts in the Wordpress TinyMCE editor using the Safari web browser, you might have noticed that breaklines are not correctly treated and that your posts end up being a single block of text rather than paragraphs as expected.

addthis_url = ‘http%3A%2F%2Fwww.lost-in-code.com%2F28%2Fwordpress-safari%2F’;
addthis_title = [...]

CakePHP Crontab

Due to the way that CakePHP rewrites URL requests with its router, it might seem confusing to execute a Crontab to run a controller action. I will show you how to set up a cron dispatcher so that you can execute all your different controller action schedules on a single file and pass the controller [...]

PHP : Cannot use a scalar value as an array

I was working on a Wordpress plugin today and came across the most disturbing PHP warning error which I have never seen before in all the time that I’ve worked with PHP. The warning error message was :
Warning: Cannot use a scalar value as an array
What caused this error was when I tried to append [...]

Xampp phpMyAdmin Problem

I started XAMPP today and tried to open phpMyAdmin (http://localhost/phpmyadmin/) in my browser in order to do some database management. Unfortunately I was presented with the following error message :
cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly
After playing around a bit, [...]

Linux : Change file/folder owner

On a Unix based system, all files and folders belong to a group and a owner. Or rather, an owner and a group has specific permissions to read, write and execute files. So you might need to change the owner of certain files and folders so that you’ll be able to open them, edit them [...]

MySQL : Transfer database from server to another server

In this article, I will show you how to dump a mysql database from one server to another remote server without having to export and import your SQL structure and data. We’ll dump a database directly to another empty database on another, remote server. In order to do this, you’ll need shell access to both [...]

Server to server file transfers

Server to server file transfers are relatively easy on a dedicated or virtual private server running Unix. I’ll quickly show you how to use the scp command which acts just about exactly the same as the cp command. It copies all files from a specified source path to a destination path on the remote server [...]