Topic “PHP”

Bayesian filter in PHP

Bayesian filtering has come to the fore for being exceedingly good at identifying spam. The Mozilla email clients use it and they are excellent, once trained, in separating real spam from false positives. IBM Developer works shows how to implement Bayesian inference in PHP.

Tags:

Running PHP4 and 5 together

Runnigng PHP4 and PHP5 together using apache proxying.

To solve this problem, I used Apache's mod_proxy module and two apache servers... My primary server runs PHP 5 as an Apache module and a second apache server runs PHP 4.3.5 as a module. My configuration requires that you can setup multiple virtual servers and run Apache to listen on localhost on port 8080. Here's what I did:
Tags:

Update to PHP Calendar Class

my PHP Calendar Class. I Fixed a bug that cause the calendar to display improperly if the month begins on a sunday. Added 4 new public methods: getStartTime(), getEndTime(), setMonth(), and setYear().

View source.

Download source.

Tags:

More on writing PHP libraries.

Really good set of guidelines for writing php libraries that others might be able to use can be found at LaughingMeme.
Tags:

Web Data Analysis with PHP

An interesting article on IBMP's developer works site touches on how to Take Web data analysis to the next level with PHP.

Tags:

Zend Tutorial on PHP function Libraries

If you're using function libraries to organize your php code, I highly recommend reading Writing Libraries in PHP on the Zend site. There are a number of very good recommendations as well as insightful discussion of the different approaches available when writing php functions.
Tags:

php function junction

Working well with php functions

Most of the time its very tempting to open up your text editor and start writing code to scratch some itch. Smart programmers know to use functions to wrap up repetitive tasks and make life easier on themselves. The following piece is meant to give your functions a little extra edge both during development and months later when you come back to fix or improve your php script.

Tags:

MS compares PHP to ASP

However, MS conveniently limits the scope of PHP to the single PHP download and not to the overall PHP community. The overall point I got from the MS arguments is ASP.NET: we give you more in the base distribution. Whereas for PHP you'd have to know where to look for good 3rd party classes and scripts. Personally, I'd like the ZEND folks to keep focused on the making the ZEND engine better.Some of their critiques:

Recent Comments

Subscribe by Email

Enter your email address:

Delivered by FeedBurner