Javascript table grid sort

0 comments

PHP5 Class for Yahoo Term Extractor API

Given a content string, this class uses Yahoo Term Extraction API to generate a list of keywords/phrases that you can use for things like META tags or other SEO objectives.

Labels:

0 comments

Fix php_browscap.ini for PHP

This class parses, fixes and prepares php_browscap.ini into browscap.ini for PHP. It also detects if the latest version needed to download.

Labels:

0 comments

Simple & fast spider detection

Developers can use the browscap.ini to detect if the User-Agent is a search engine or data collection spider or not. However, that file is rather large and will be expensive on resources. If you need a faster, simpler (albeit less accurate) method, this class can be useful.

Labels:

0 comments

fastcgi load balancing with lighttpd

Lighttpd, fast-cgi & PHP can do quite a wonderful setup that can handle significant load. You can have many layers of load balancing & fail-over. Here is a three-layer approach. A dedicated load balancer directs many web servers. Each web server (lighttpd) delegates the processing of dynamic to multiple application servers (fast-cgi).

Configurations

Check out the lighttpd config for mod_fastcgi. In this case, we want only load-balance a single controller PHP file that is called heavily. We also let the webserver be the appserver itself for the moment and become a dedicated one if it becomes overloaded. All other regular PHP requests are served by the localhost (webserver). Add this into your lighttpd.conf: To start the fast-cgi processes on the application servers:

0 comments

Parse stats from PowerDNS webserver

PowerDNS has a webserver that reports running stats. This code converts the HTML output (which has quite a few syntactic HTML errors) to semi-XML Output

Labels:

0 comments

RPM for eAccelerator 0.9.5

This is the RPM for eAccelerator 0.9.5 for PHP 5.1.6 including source RPM, you can rebuild it by running "rpmbuild --rebuild file.rpm" php-eaccelerator-5.1.6_0.9.5-1.centos4.src.rpm php-eaccelerator-5.1.6_0.9.5-1.centos4.i386.rpm

1 comments

PHP - Customize str_rot13 function

If you find str_rot13 is limited, this is a more customized string rotation function. It allows you to specify how many characters to shift (positive for moving forward, negative for moving backward) and which characters to shift.

0 comments