Categories
test tithely

Protected: Tithely – LGF Testing Pages

There is no excerpt because this is a protected post.

Categories
test tithely

Protected: Tithely LGF redirect tests – “original”

There is no excerpt because this is a protected post.

Categories
test tithely

Protected: Tithely LGF redirect tests – v1

There is no excerpt because this is a protected post.

Categories
test tithely

Protected: Tithely LGF redirect tests – v2

There is no excerpt because this is a protected post.

Categories
test tithely

Protected: Tithely LGF redirect tests – v3

There is no excerpt because this is a protected post.

Categories
test tithely

Protected: Tithely LGF redirect tests – href

There is no excerpt because this is a protected post.

Categories
troubleshooting wordpress

PHP command line memory limit

If you get an out of memory error when running a PHP file from the CLI, you can inline an increased limit for just a single run with the -d memory_limit switch. Examples:

Categories
learning

PHP International Date Formatter

From a PR on May 9 I think the distinction between timezone and locale may be conflated here, I don’t want to create unnecessary work – it just looks like all we really accomplish is swapping between ‘m/d/y’ or ‘d/m/y’, which is still not fulling achieving localized formatting. For example, some locales use different separators, […]

Categories
learning

PHP Dates & Timezones

From a conversation in a PR on May 4: As soon as a DateTime object is instantiated, it has the time set to the microsecond. If the arguments provided when creating the DateTime are not sufficiently specific, PHP will fall back to defaults to establish the exact time. Even if all you specify is a […]

Categories
guides

Disk Usage of the current folder (du command)

I use du -h –max-depth=1 all the time to determine the disk usage of the folders in my current directory, but my fingers always stumble over –max-depth=. The better way (which I learned thanks to explainshell.com): Some helpful variants: