PHP

After a cool morning on upgrading to Fedora 27, I faced an issue when i tried to resume a web project I was working on. Apache wasn’t running and I checked what was wrong with   And caught this error as part of the debug: Apache is running a threaded MPM, but your PHP Module…

Read More FIX: Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe in Fedora

It’s funny though. One noon at Cafe Neo in Sabo, Yaba, I was waiting on my friend Magnus while he met his friend. Sipping my coffee and using my laptop, with the bad network there, I couldn’t browse with my GLO SIM; I then decided to play around. I exported my MySQL Database as JSON…

Read More PHP-JSONDB: A PHP Class that Reads JSON File as Database

Stumbled upon a very monstrous PHP project, very old of course, the client complained that the web host refused to downgrade the server for them and this project doesn’t work anymore because it was written with bunch of mysql_* depreciated function. Now it was my job to start editing these files one after the other,…

Read More MySQL2MySQLi: A Small Program to Help Migrate from PHP mysql_* to mysqli_*

Here is what we’ve got here? A PHP Online Guest Class What Does This Do? This class saves any guest that visits your site saving some vital details about them, refreshing the time set and counting number of guests online How to Configure This: Firstly, set up your database connection by editing these lines of…

Read More PHP Class: Online Guest Count System Using PHP

PHP has an awesome function that highlights its own code, means you can highlight PHP codes using a function which is the PHP highlight_string () for string and highlight_file () for a PHP file. On using this function, the highlighted code never come with line numbers but in this post I’ll show you how I…

Read More Highlight PHP Codes with Line Numbers Using highlight_file () Function