#php
7 PostsSimple chat application in PHP using Ratchet
In the previous post I made a demo chat app using React and Socket.io. In this post we'll build that same app again, this time in PHP using…
Proper-casing names when they are stored in all caps
Reformatting names is generally inadvisable, because no matter what you do you'll be wrong. Names don't follow rules consistently (or at all…
Filtering Kaltura list results
Kaltura is a video platform and content delivery network (CDN). The Kaltura API is powerful but poorly documented, so usually it takes a lot…
Simple Database Connections
The other day I had to explain to someone how to connect to a MySQL database in PHP. It was a good reminder. Here's a simple example using…
Limitations of WP_Query
I ran into one of the limitations of WP_Query recently when I realized it couldn't do a fairly simple query. Problem I wanted to get all the…
MySQL SSH tunnel
If your MySQL server is configured to only accept local connections, then you can't connect remotely by just specifying the hostname in your…
Passing checkbox (boolean) values in ajax
Problem: I was reminded today that JavaScript boolean values don't translate well to PHP. Here's an example. Say you have a form with a…