Archive for October 2nd, 2006

Joshua Eichorn’s Blog: Webthumb API additions

In light of the popularity of his WebThumb site thumbnailing service, Joshua Eichorn is implementing a new feature to help reduce the number of requests to the server. The most popular request is made to see if a thumbnail is ready, and the new feature - a GET callback to the server making the request - will help to reduce them.

If you wondered an API that requires polling isn’t a very good thing for scalability. On my current setup I can pretty easily handle about 20 status requests per second on top of my normal traffic, the problem is its not hard for a bad polling implmentation being run by one user to make that many requests.

To solve this problem im adding an addition to the Webthumb API that will allow you to skip polling all together. The basic idea is that your make an API request and when your thumbnail is complete i’ll make a GET request back too your server telling you that the request is complete.

It’s a simple matter of including a new “notify” tag in the XML message to the server with a URL to make the callback to. He even includes some sample PHP code to get you started with the new feature. The script handles the automatic download of the thumbnails when called from the WebThumb service.

Continue Reading · Add comment

Jacob Santos’ Blog: Zend Framework: Hackish Include Path Solution

Jacob Santos was having a problem with the Zend Framework. It couldn’t find its own files. So, he’s come up with a hack that helps mod_php users to avoid the problem.

I’ve had problem with Zend Framework not being able to find its files, which is usually not good. The “workaround” of adding the realpath works, but would be overwritten when updating. Besides, going through the files just to add realpath locations is a hassle.

The php_value only works with mod_php, so good luck if you are running PHP using CGI/FastCGI. Actually, you’ll have no luck, because it won’t work using CGI.

Essentially, it uses the ihi_set function to define the correct include path. Check out the comments of the post for some other suggestions.

Continue Reading · Add comment

Introducing Static Members and Methods in PHP 5

Static properties and methods can be quite useful in a range of situations not merely for constructing a Singleton class. This article the first in a two-part series introduces the basic concepts of static properties and methods using plenty of hands-on examples….

Continue Reading · Add comment

DevShed: Introducing Static Members and Methods in PHP 5 (Part 1)

DevShed has posted the first part of a two part series today looking at the use of static members and methods in classes in your PHP5 scripts.

Static properties and methods can be quite useful in a range of situations, not merely for constructing a Singleton class. This article, the first in a two-part series, introduces the basic concepts of static properties and methods, using plenty of hands-on examples.

Hopefully, by the end of this series you should be equipped with a decent knowledge of how to include static members and methods within your PHP applications with minor difficulties.

They start with a simple example of using both in a class before moving on to using the Singleton pattern working up to making a Factory for creating static objects.

Continue Reading · Add comment

Job Posting: Getloaded.com Seeks Senior Developer (Richmond, VA)

Company Getloaded.com
Location Richmond, VA
Title Senior Developer
Summary Getloaded.com, LLC, an internet load board, is seeking a Senior Developer/Analyst for a full time position. Incumbent will implement custom software applications, prepare application specifications, assist with software development, support of existing software applications, assist with quality assurance of software applications, and assist with customer support in technical issues. The incumbent must be able to deliver projects independently, or in a team environment. Interested candidates should submit a resumes and salary requirements to careers@getloaded.com. No phone calls or third parties please.
Link More Information

Continue Reading · Add comment