Posts tagged with "php"

Simple 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,...

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...

Filtering Kaltura list results

Kaltura is a video platform and content delivery network (CDN). The Kaltura API is powerful but poorly documented, so...

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...

Limitations of WP_Query

I ran into one of the limitations of WPQuery recently when I realized it couldn't do a \_fairly simple...

MySQL SSH tunnel

If your MySQL server is configured to only accept local connections, then you can't connect remotely by just specifying...

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...