Notebook » Php

Using php to talk back and forth with processes is a tuff task. So I've developed a library to help reduce the pain.

Using Php's builtin array_filters vs foreach loops for filtering arrays, seeing which is fast, cleaner and more maintainable.

A smarter way to check for a user's new messages / notices by off-loading sessions.

Java and Php both have builtin image processing, so I took a comparison to see which was better and when.

Languages have their marks and roles in programming, but nothing is as versatile and fast as C code. But their is a major lacking in c++ web frameworks so I've been working on a simple framework.

A lot of time when a user posts data it swamped with bad characters and then saved to a database. Well then its pulled back and displayed incorrectly. I present a simple method to getting around them and how to find them in php.

A simple way to find those html web pages that are the same but the code isn't 100% the same. Its using php and mysql for fast and accurate findings.

Creating an rss, is rather simple, but at the same time a bad example kills me. So I procided a method using Dom Document to create a clean RSS.

How to deal with php timeouts.

When on shared hosting its common to hit memory limits. Being defensive about them is the first step, so in this note I go over calculating image memory and checking if there enough room to load it.

Auto sizing watermarking with GD

Firefox introduced a new aspect to file access from a website. You can now read data from files before its uploaded. I got over reading files and uploading them with true ajax.

Mysqli is a great addon to php, however its prepared statements are very trivial. So wrote a wrapper to provide a simple api without reverting to PDO for loss of speed.

Zend's Interface to PDF's are very limiting. So I've built a small wrapper to help aid and expand the library. You'll able to wrap text, and create simple tables.

There are plenty of reasons not to use RAND(), so I go over a few methods and when to really use RAND().

Working in no database and a need for it I turned to python and buzhug

Json might be lighter weight to transport but the downside in php is its parser isn't as quick as its xml. So I got over a simple example and load times


esign