PHP/MySQL

LAMP stuff: Linux, Apache, MySQL, PHP

Dashboard

A simple server-side dashboard for Union Platform

Union  is a development platform for creating multiuser applications. It contains a server written in Java and client libraries in AS3, Javascript with Websocke and even server-side with Node.js. The communication protocol is XML-based and open so anyone can write a custom client in any language. In fact, in this article I’ll show you how Union can talk with PHP.

Full Story
The “right way” to handle file downloads in PHP

The “right way” to handle file downloads in PHP

I’ve seen many download scripts written in PHP, from simple one-liners to dedicated classes. Yet, at least half of them share common errors; in many cases programmers simply copy the code from something that works, without even attempting to understand what it really does. What follows is not a complete working download script, but rather a set of issues you should be aware about and that will allow you to write better code.

Full Story