Filtering in PHP is super easy with the built in filter_var() function. Filtering is essential when taking in form input or applying logic to any set of data. This is especially crucial when sanitizing user input in order to prevent XSS and Sql injection attacks. filter_var ( mixed$variable [, int $filter = FILTER_DEFAULT [, mixed$options ]] ) : mixed Grab the code below to see …
Interview questions for developers are by nature “trick questions”. I say this because I have seen it too many times. On one hand, the question will be a complex narrative with multiple variables and things to consider, yet the answer is clear and straight forward. And on the other hand there is a very basic …
Exakat Exakat is a tool for analyzing, reporting and assessing PHP code source efficiently and systematically. Exakat processes PHP 5.2 to 7.4 and 8.0 code, as well as reporting on security, performance, code quality, migration. –Exakat docs Static analysis of code is a great tool to use whether for unit testing or in this case …
But first…. Are we really at http/3? and what the heck is IETF QUIC? QUIC is a new networking transport protocol that combines the features of TCP, TLS, and more. HTTP/3 is the latest version of HTTP, the protocol that carries the vast majority of Web traffic. HTTP/3 only runs over QUIC. Why do we …
TypeLit.io is a fantastic idea. This site will let you improve your typing skills by typing actual books. No more typing about foxes and jumping. Typelit will let you choose from 1984, Alice in Wonderland and even the King James Bible.
ANDROID IN A BOX is here to bring any Android OS to your Linux box. Android in a box (Anbox) is a brand new player to the scene making use of containers instead of emulators to bring Android to Linux. Here’s a quick video of it in action. To get started with Anbox your system …
This amazing Bash trick comes from Pascal Hirsch on Twitter. It goes like this: Enter a line of Bash starting with a # comment, then run !:q on the next line to see what that would be with proper Bash escaping applied. How does this work? James Coglan explains: The ! character begins a history expansion; !string produces the last command beginning with string, and :q is a …
“The PHP team is pleased to announce the eighth testing release of PHP 8.0.0, Release Candidate 1.” This RC can be found on the official release site php-8.0.0rc1.tar.bz2 2020-09-29 22:46 13M php-8.0.0rc1.tar.bz2.asc 2020-09-29 22:46 866 php-8.0.0rc1.tar.gz 2020-09-29 22:46 16M php-8.0.0rc1.tar.gz.asc 2020-09-29 22:46 866 php-8.0.0rc1.tar.xz 2020-09-29 22:46 10M php-8.0.0rc1.tar.xz.asc 2020-09-29 22:46 …
WINDOWS SERVER VULNERABILITY REQUIRES IMMEDIATE ATTENTION.This has been posted on /r/sysadmin on Reddit: CVE-2020-1472 Netlogon Elevation of Privilege Vulnerability byu/ugus insysadmin Twitter post explaining it: https://twitter.com/RyanLNewington/status/129344415164462694… Blog post explaining it: https://www.tenable.com/blog/cve-2020-1472-zerologon-vulnera… POC: https://infinitelogins.com/2020/09/15/abusing-cve-2020-1472-…
I’ve been using Docker a lot at work for development. This leads to a pile-up of images on the server. In order to clear them out I made this handy little script. This will remove all images even attached ones on your system. Be aware that running this on production or a shared development environment …