Blog

What to Expect from PHP 8.5: Upcoming Features and Their Uses

PHP 8.5, scheduled for release on November 20, 2025, continues the evolution of the PHP language with a mix of new features, enhancements, and deprecations aimed at improving developer productivity, runtime performance, and language consistency. Let’s take a quick look at the most anticipated features in PHP 8.5 and their practical applications. 🔧 1. Static […]

Top Coding Trends You Should Know in 2025

The coding landscape in 2025 is evolving fast, and one of the most exciting trends is the rise of serverless, AI-enhanced applications powered by WebAssembly (Wasm) and Edge Computing. 💡 Why it matters: WebAssembly (Wasm) allows high-performance code (like Rust, C++, or Go) to run right in the browser — making web apps faster and […]

Change AWS EC2 Instance Key Pair

Create a new Key Pair in Network & Security > Key Pairs, let’s name it “new_key_pair”: https://prnt.sc/YF3IKFzFZYtD Use PuTTYgen to convert the PEM file to PPK file. The PPK file will be used in PuTTY to connect in your instance. Click “Load” and open the new PEM file created from AWS. Then click “Save private […]

Changing Alt Attribute of images

I tumbled an issue recently that the elements don’t have an alt attribute, so I added a code that will set all empty alt with a random value. function set_empty_img_alt_attribute( $filtered_image, $context, $attachment_id ) { $string = $filtered_image; $dom = new DOMDocument(); @$dom->loadHTML($string); $image = $dom->getElementsByTagName(‘img’)->item(0); if($image->hasAttribute(‘alt’)) { if( $image->getAttribute(‘alt’) == “” ) { $image->setAttribute(‘alt’, […]

Changing Decimal places in Event Tickets plugin

This solution is for the WordPress plugin called Event Tickets. Simply add these codes in your functions.php add_filter( ‘tribe_format_amount_decimals’, ‘change_decimal_places’ ); function change_decimal_places() { return 0; // all amounts will return as a whole number }

Adding user authentication for Lorem-Framework

Users Table For this tutorial, we need to setup our Users table first. Create the table by running this SQL query in your PHPMyAdmin page: CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(25) NOT NULL, `password` char(32) NOT NULL, PRIMARY KEY (`id`) ); We have our Users table ready, let’s add a […]

Rebinding event after an ajax call and you thought you’re doing it right

So I got stuck on this for hours, I had no idea what I did wrong. Before this was working well until this case. What I usually do when rebinding events to an element after an ajax call is: $( “.element” ).on( ‘click’, functon() { alert( “Hello!” ); } ); Basically I make an ajax […]

CS10 PHP Quiz March 10

Create a variable named ‘items’ with a value of 100.9 Create an associative array with indexs “name”, “age”, “height” and values of “jose”, 28, “128cm” respectively, then assign it to a variable named ‘person’. Using the variable in #2, print the value of index ‘name’. Write an If statement that checks if the variable in […]