MySQL replication in PHP – on the same machine
Wednesday, September 14th, 2011I just realized I needed to replicate some data from one database to another, but only certain tables.... Read More
I just realized I needed to replicate some data from one database to another, but only certain tables.... Read More
Color theming in Geany is quite a no-brainer if you know how to go about it.... Read More
Create a file called “2 clés.html”, zip it up and, name the file html.zip then unzip it with the following command: unzip html.zip -d /tmp, check the /tmp folder, what do you see?... Read More
If you’ve read the article about my email server setup you quickly realize that adding a new email account is quite onerous, a combination of adding records to tables in a MySQL database and creating folders on the harddrive. This can easily be automated with for instance PHP and I’ll show you how below.... Read More
Update I’ve had to revise this one, the original post might work (or not) if you have an older install of Ubuntu, atm (2013-02) I use Lucid, and now the following process works:... Read More
I’ve just run into the need to be able to get the http cookies of a response to a request sent from PHP and accepted in PHP. Normally cookies can be accessed through the $_COOKIE super global but since no client/browser is involved that won’t be possible in this case. The below is an example of machine to machine communication.... Read More
I’m currently working on a project where I use MongoDB and Clojure to create an API only type of service. Other sites of ours are connecting to this service, these sites are all made with PHP at the moment.... Read More
When you want a random password you might think that for instance uniquid() is a good fit. It’s not though as it will only return hex characters.... Read More
I just searched for ways of getting the start and end dates of a week. Sadly there is some less than simple solutions in the top results, this is a small effort at remedying that situation.... Read More
Today I just realized I didn’t have any PHP code to generate extended MySQL inserts at my disposal. For heavy inserts I’ve been using BEGIN and COMMIT with lines terminated with ;. ... Read More