Symfony
Using Multiple Databases in Symfony with Propel
There comes a time in your symfony development career when you will need to connect to multiple databases from within one application. At first it may not be obvious how to configure symfony correctly to handle a couple different databases or database servers.
{More»}Linux
Getting around the “Media change: please insert the disk labeled..” message in Ubuntu»
So, sometimes when you try to run “apt-get install” on Ubuntu, you may get the following message:
Media change: please insert the disc labeled
'Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
in the drive '/cdrom/' and press enter
Of course this isn’t a real big problem when you are sitting right next to the computer. However, if it […]
PHP
Get a PHP Script’s Own Linux PID (Process Id)»
Previously, I wrote this article on how to check the status of a known system PID from PHP. I figured that I would follow it up with another short article on how to determine the process id of a running PHP script from within itself. Many google searches seem to have led people to the […]
MySQL
Return MySQL Results from an “IN” Query in the Correct Order»
The scenario:
You have a list of ids in a particular order that you want to search for in a MySQL table. Perhaps the ids were returned in this order from a search index or something else. Whatever the case is, now you want to get the results in the same order as the ids that […]
