PHP Desktop App Development

Every once in a while, I feel like I want to build something that doesn’t reside on the web, and while there are better programming languages for desktop app development, I already know PHP, so I would like to just use that.   There are a number of projects that supposedly make it possible to do this […]

Read More

PHP – Get the Current URL

I always end up looking for how to get the current URL in PHP. This is it: $_SERVER[‘REQUEST_URI’];

Read More

Importing Large MySQL Files into PHPMyAdmin

The default file size for uploading mysql dump files into PHPmyadmin is around 2mb. I needed to upload a 160mb file. How to do it? 1. Increase the maximum execution time for phpmyadmin: I use xampp, so I just had to find the config.default.php file, which for me was located in xampp/phpMyAdmin/libraries/config.default.php. I then searched […]

Read More

PHP JSON Returned As Object Instead of Array

I was returning, what I thought was an array from PHP, but it kept returning it as a json object, so I had something like: $listItem[0][0] = “Jan 1”; $listItem[0][1] = 100; $listItem[1][0] = “Jan 2”; $listItem[1][1] = 120; $listItem[2][0] = “Jan 2”; $listItem[2][1] = 120; …etc… This would return in javascript those an array, […]

Read More

My Backend is Better than Yours

For some reason I found myself in a subreddit where someone started the familiar post on why their backend programming language was better than PHP. I see this come up quite a bit with regards to PHP, I even remember responding to someone’s blog post several years ago where they were complaining about PHP — […]

Read More