This on Hacker News today: CSRF, CORS, and HTTP Security headers Demystified.
The above article referred to OWASP SameSite doco, and you can read about how to implement that with PHP.
This on Hacker News today: CSRF, CORS, and HTTP Security headers Demystified.
The above article referred to OWASP SameSite doco, and you can read about how to implement that with PHP.
See My current HTML boilerplate for some good ideas for a starting place for HTML content. I kept a copy, here.
An interesting approach to testing web services: A logical way to test online software.
A new version of Firefox released: Firefox 88.
Today via r/programming: HTML5 Tips. I think my favourite was the meter tag… or maybe the spellcheck attribute… lots of good tips over there.
This on r/programming today: CSS Tips. There are a lot of good tricks in there, this one was my fav:
.center {
display: flex;
align-items: center;
justify-content: center;
}
…it centres content vertically and horizontally.
Some good tools and techniques listed over one Tools for Auditing CSS.
This on r/programming today: Font size is useless; let’s fix it. Interesting article, but I didn’t read it closely.
Kickass: Charts.css. Also of interest: Which color scale to use when visualizing data.
I confirmed with the following code that if you call ‘exit’ withing a ‘try’ block the ‘finally’ block does *not* execute. That’s probably what you would expect. But now we know.
register_shutdown_function( 'handle_shutdown' );
try {
exit;
}
catch ( Exception $ex ) {
echo "caught...\n";
}
finally {
echo "finally...\n";
}
function handle_shutdown() {
echo "shutdown...\n";
}