Posts tagged php
PHP5 & Memcached (Example)
Feb 16th
In this example I’ll be showing you how to read and write from a memcached server using PHP5, using singleton class design and some basic static functions to connect your servers up before performing the caching. For those of you who don’t know what memcached is I have included the description from the memcached website below.
If you want to know more technical information visit the official website: memcached.org
“Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.”
Teamspeak 3: Connection Class
Dec 21st
Due to the recently released Teamspeak 3 BETA I have made a connection class in PHP to communicate with the server and fetch back information that I can display in a visual format. I have included a download ZIP for this that includes the PHP code, styles and icons used.
The full package includes a stylesheet and icons, see the archived file at the bottom of this post.
More >
Basic Tutorial PHP/MySQL (Part 1)
Dec 7th
One of the most requested tutorials are those that explain how to connect and use a MySQL database server with PHP code. I have written a basic tutorial showing how to perform MySQL queries with PHP.
So you’re wanting to use a database with PHP to store your data? MySQL is a great open-source RDBMS (Relational Database Management System) that is widely available on many web hosting packages. Before we start make sure that you have access to both PHP and MySQL on your hosting package.
PHPCache Release
Dec 5th
I have been working on a small class to cache functions in PHP. I have come up with a class that will allow you to convert any standard function into a cached function with just one line of code. The main advantage is if you are using a Linux based server for running PHP, as I have included (by default) for the cache files to write straight to the system RAM that greatly increases performance. Check out the code below.
This is the first release of the file up to now so if you have any problems let me know.
More >
