Posted on February 29th, 2008 by lost-in-code
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 = [...]
Tags: breaklines, js, paragraphs, safari, tinymce, Wordpress
Filed under: Software, Wordpress | No Comments »
Posted on February 28th, 2008 by lost-in-code
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 [...]
Tags: CakePHP, cron, crontab, dispatcher, php, schedule
Filed under: CakePHP, PHP, Programming, Server Management, Web Development | No Comments »
Posted on February 26th, 2008 by lost-in-code
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 [...]
Tags: array, error, errors, php, scalar, warning
Filed under: PHP, Programming, Web Development, Wordpress, Wordpress Plugins | No Comments »
Posted on February 23rd, 2008 by lost-in-code
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, [...]
Tags: php, phpmyadmin, save_path, server, session, session.save_path, xampp
Filed under: Server Management | 1 Comment »
Posted on February 20th, 2008 by lost-in-code
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 [...]
Tags: chown, file, folder, group, linux, owner, recursive, ssh, unix
Filed under: Server Management | No Comments »
Posted on February 20th, 2008 by lost-in-code
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 [...]
Filed under: MySQL, Server Management | No Comments »
Posted on February 16th, 2008 by lost-in-code
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 [...]
Tags: file transfer, linux, recursive, scp, server, server to server, ssh
Filed under: Server Management | 1 Comment »