How To Interpret The Httpful\Response Object

Author: , December 10th, 2021

I use the httpful library from https://phphttpclient.com The website has not defined the Httpful\Response keys anyplace easy to find, so I have documented them here:

How To Process System Exit Codes Using Perl Eval

Author: , March 9th, 2021

The trick to using eval to catch shell execution is to return twice, once inside the eval and once outside:

Neat!

How To Create a Code Block in PHP for Error Handling

Author: , October 19th, 2012

The do/while statement is sometimes used to break out of a block of code when an error condition occurs. For example:

Because the condition for the loop is false, the loop is executed only once, regardless of what happens inside the loop. However, if an error occurs, the code after the break is not […]