53x11.com



Code

Warhammer Online Server Status 0.1

Sunday, September 14th, 2008 @ 5:17 PM - code

WAR Server Status

WAAAGH! Wot be me Server Status? Here be em' PHP script fer parsing dem nasty status pages.

This script will parse Mythic's Warhammer Online server status page and output a text status to your Guild's website.

During peak hours, Mythic's server status page may not be available. This script solves that problem by caching the data and only checking for updates at definable intervals.

This was made very quickly for the WAR community to have access to this information. Later features to be added will be akin to my WoW Server Status Script.

» Read entire article...

August PHP Script Updates

Friday, August 15th, 2008 @ 4:30 PM - code

GDFont Renderer

GDFont Renderer 2.0

Complete script rewrite. I use this script everywhere on 53x11.com as well as other sites. It was due time for an update.

  • Added GIF support
  • Vastly improved cache speed
  • Legacy support for older font_style.php sheets
  • New direct access admin dialog
  • Fixed the glaring issue of relying on register_globals.

This super-lightweight PHP script allows you to render any text into any TrueType font that is then displayed as an image on your web page. It includes the option to cache images to reduce server load.

WoW Server Status

WoW Server Status 4.1.

Complete script rewrite. I stopped caring about this script years ago, but the damn Warcraft folks would not stop emailing about fixing it.

  • Added GIF support
  • Vastly improved cache speed
  • Ability to call via as a function
  • European XML support
  • Improved error handling and detection

» Read entire article...

Cookie Counter Update

Monday, July 28th, 2008 @ 8:54 PM - code

Cookie Counter Update

I'm releasing an update to the first PHP script I ever released to the public, Cookie Counter.

Contrary to the title, it won't help you monitor your Pepperidge Farm intake. It's a simple website hit counter function that prevents multiple counts by tracking IPs with a browser cookie. Whoa, nerd alert!

I needed a traffic counter for a recent project, and was unwilling to use my garbled code from years ago that read like it was penned by a PHP idiot (it was).

Don't make me regret this update with inane questions via email.

These Things I Know, PHP Tips

Monday, May 2nd, 2005 @ 11:26 PM - code

There is more than one way to achieve the same result when programming in PHP. Therein lay many shortcuts I wish someone had explained to me when I began learning the language. (One would assume that is what those $49.99 books are for, but apparently there are only written to bewilder the reader into buying another book.)

» Read entire article...

WoW Server Status, 4.1

Thursday, April 21st, 2005 @ 6:18 AM - code

Realm Status Badge

This lightweight PHP script will parse Blizzard's XML feed and display realm status on your Guild's web page. The output can be configured as text/HTML, a dynamically generated image or as a PHP array.

During peak hours, Blizzard's website connection is often unreliable. This script solves that problem by caching the XML data and only checking for updates at definable intervals.

The latest version supports both US and European servers (except Russia, sorry comrades).

» Read entire article...

WoW Server Status, 2.2

Tuesday, April 19th, 2005 @ 2:44 AM - code

Server Status Badge

This script just got a major overhaul the includes dynamic image generation, status caching and improved error detection.

The WoW Server Status version 3.1 page can be found here.

GDFont Renderer, 2.0

Sunday, April 17th, 2005 @ 5:08 PM - code

GDFont Renderer

Nevermore be shackled by the appearance of jagged fonts. Release the bonds of using the same tired web typefaces over and over again. Save yourself immeasurable hours of creating individual text images for titles. The time has come to bathe in the omnipotence of dynamically generated text images. By harnessing the power of PHP and the commonly built-in GD Library, you too can become a god among men.

» Read entire article...

Cookie Counter, 1.4

Saturday, April 16th, 2005 @ 11:00 AM - code

Cookie Counter

Do you have hit counter that miss-counts every time you refresh your web page? Are you unwilling to install a bloated multi-file script just to get an accurate hit count?

Behold! A dead-simple, minuscule sized, accurate hit counter. A PHP session (cookie) is used to determine if the site has been visited during the browser's session. The IP address of the last visitor is logged as well. Basically, you need to close your browser application, reopen it, change your IP address and revisit the web page to record a "double hit".

» Read entire article...

Weather.com XML Parser, 1.4

Friday, April 15th, 2005 @ 10:48 PM - code

Weather.com XML Parser Example

This PHP script will allow you to monitor your current local weather via a Weather.com XML feed. It parses the XML data and then outputs formatted HTML to a .txt file. This .txt file can then be integrated into your website via SSI, PHP or any other language that will accept Includes. It is intended to be setup as a Cron Job, that is accessed to update only every few minutes. If it were accessed more often, Weather.com would shut down your XML feed.

» Read entire article...

PHP with GD Library equals Anti-aliasing Fonts!

Thursday, April 14th, 2005 @ 8:20 AM - code

Check it the fuck out! By using the GD imagery library for PHP I can output any text on this website in any True Type font.

For instance, look at the Title and Date of this article. Those aren't premade pixels - that is straight up dynamically generated shit motherfucker.

I think I'll go for a bike ride now.