I made a simple bash
backup script for the newer MySQL database servers at Cogneato.
WWW posts page 10
PHP: Escaping email display name
I recently had the need to take a name from a form submission and use it as the display name of the “From” address of an email sent through PHP’s mail()
function. For an address like Toby Example <t@example.com>
, the display name is the Toby Example
part.
reCaptcha solved by bots?
Some presumed bots figured out the reCaptcha (version 2) we protect forms with at Cogneato.
Continue reading post "reCaptcha solved by bots?"DreamCompute downtime incident 2020
There was another DreamCompute incident leading to downtime of my site / server.
Continue reading post "DreamCompute downtime incident 2020"I’ve upgraded my Firefox Android install to the new version running GeckoView.
Continue reading post "#3014"I’ve just learned that, with the MySQL command line client, one can run \s
or status;
and get a nice readout of status information.
Javascript: Submit form with overridden submit method
I come across the situation occasionally where I am trying to submit a form programmatically with javascript, but it happens to contain a field with an id
or name
attribute of submit
.
Automatically reconnect PDO when connection times out
In PHP scripts that run queries to a MySQL database over a long period of time, the connection may time out and give a “MySQL server has gone away” error.
Continue reading post "Automatically reconnect PDO when connection times out"Import SQL file in Doctrine / PDO
I recently needed to programmatically import SQL files containing database dumps into a database managed by Doctrine ORM.
Continue reading post "Import SQL file in Doctrine / PDO"I only went a little over my 10GB hot spot limit for my first month on the new plan and the first without T Mobile’s coronavirus related unlimited data upgrade.
Continue reading post "#2959"