Find by Category

How to Convert PNG to WEBP with PHP

png to webp with php gd

Hello there, this post will help you understand how some of WordPress image conversion plugins work behind the scenes. This is very simple straight forward process using php image manipulation library GD, which is a default library on almost every server with PHP. GD can do a lot of things like image creation, editing, cropping, … Read more

Categories php

Enable opcache on XAMPP Server

To enable opcache in XAMPP, launch your xampp control panel, stop the apache server and open php.ini file by clicking config and going to php.ini file. Press control + f and type opcache to find the following line and uncomment it. Last and but not the least, scroll down to the very end of php.ini … Read more

Categories php

PHP While Loop in HTML

This post will help you understand how to use PHP while loop to traverse and display MySQL table data in HTML. I have two tables in my MySQL database, named categories and brands that I want to view on html/php pages using PHP while loop. I assure that you have established your MySQL database connection … Read more

Categories php

Fixed – uncaught error call to undefined function mysql_connect()

If you are getting following error on your Windows OS then chances are that you have some php and mysql configuration issues. I was getting Uncaught Error Call to undefined function mysql_connect() on my Windows 10 and had XAMPP and PHP8 installed additionally and my additional PHP8 was set to the system’s path. Download PHP … Read more

Categories php