TAG: php

Software Engineer. Stuff and nonsense. The usually short ramblings of Chris McKee.

Curl HTTP 417 – Expectation Failed

WordPress XML RPC – HTTP/1.1 417 Expectation Failed I was nocking up a client script to drag down a news-feed and post it to a WordPress blog; the script ran fine, no posts appeared and no errors occurred… irritating. So I figured I’d share this pain in the arse issue fix to the “HTTP/1.1 417 Expectation Failed Error” HTTP/1.1 417 Expectation Failed $title="Test"; $body="<b>Test<…

Converting a Date to MySql Formatted Date

[REPUBLISHED FROM OLD SITE] This is a php coded function provided to allow people to convert dates from standard input format to mysql storage format. /** * function dateconvert * * dateconvert is a handy function to take one of the aches and pains out of mysql * by converting data from a variable (posted from a form or just stored) * into a format mysql will be able to store and converting the * database date back into the british standard of…