 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Brian Moon's Blog: MemProxy 0.1
by Chris Cornutt June 12, 2008 @ 09:31:45
Brian Moon has announced the release of the latest version of his memproxy tool that uses memcache to create a "server" to save the proxy information.
I put server in quotes because it is really just a PHP script that handles the caching and talking to the application servers. Apache and other HTTP servers already do a good job talking HTTP to a vast myriad of clients. I did not see any reason to reinvent the wheel.
Features of this new version include a TTL for the cached data, minimal dependencies for the application to use and a small code base consisting of two files. It also handles HTTP 1.1 requests, is transparent and applows pages to dynamically be specifically added and removed from the cache.
You can download this latest version from the project's page on the Google Code website.
voice your opinion now!
memproxy release cache memcache proxy server download
Mike Naberezny's Blog: Wrapping PHP Functions for Testability
by Chris Cornutt August 01, 2007 @ 15:28:00
Mike Naberezny has a new post today about one of the easiest ways he's found to "wrap up" those functions in your code that make the unit testing for your application break when you run it:
One of the problems that hampers the testability of PHP code is the coupling created by accessing all of the PHP global functions. This happens often because a large number of useful extensions are accessed only through global functions.
He gives the example of an LDAP connect script that, because it requires an external LDAP server to connect to and return a response from, would break the tests. His way around the problem is to use an extension versus just calling the object itself (code included) through a ExtensionProxy. Then, it's a simple matter of calling the proxy object with the type parameter for the function to be called and evaluating the response of the proxy instead of the actual call.
voice your opinion now!
unittest testing extension proxy tutorial unittest testing extension proxy tutorial
Web Development Blog: Save bandwidth with PHProxy and ip2nation
by Chris Cornutt June 08, 2007 @ 07:58:00
From the Web Development Blog, there's a quick tutorial posted about using the PHProxy package and ip2nation tool to save you some money on your bandwidth bills each month.
If your website becomes a little busy the websites bandwidth becomes very valuable. If your visitors using too much bandwidth and the conversions from your website are very low or just moderate, it's possible that you get broke with also a good internet website project.
Their solution uses the PHProxy functionality and the IP address information (database dump) from ip2nation to create targeted user content. They include the setup for the proxy as well as some code that will need to be inserted to use the ip2nation data. Last but not least, there's also the code to insert into the page and make the magic happen.
voice your opinion now!
phproxy ip2nation target content bandwidth proxy phproxy ip2nation target content bandwidth proxy
|
Community Events
Don't see your event here? Let us know!
|