Archive for the ‘PHP’ Category

How to compare text and mark differences using PHP

I was looking for a simple class which will compare to strings and return a result with marked differences. What chars or words where removed and which were added. Just like wiki compare revisions. Actually i googled a lot and finally found a result: The main class which do mostly all the job is Text_Diff, [...]

Ajax feedback form using jQuery & Boxy plugin

I really enjoy jQuery and its capabilities. It is more lightweight than Prototype and it can do the same or even more. Also this library has lots of plugins and one of them is Boxy. Boxy is a flexible, Facebook-style dialog box for jQuery with support for dragging and size tweening. It differs from other [...]

Change content using AJAX with FadeIn FadeOut effect

Here you will find how to do such a trick: when somebody clicks the button, the old content fades out and then the new fades in. To do this I used jQuery witch is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. [...]

Moving MySQL data from 4.0 to 5.x

I needed to move data from one database to another. The source DB was MySQL 4.0 and the destination was MySQL 5.1. And all the problems was with UTF-8 symbols. I couldn’t get it to work on MySQL 5.1. I search on the internet and figured out that MySQL 4.0 does not support UTF-8 and [...]

Another FedEx class update

FedEx supports only 150 pound per package, so if you are trying to calculate rates for package which weight more than 150 you get an error. The fix was made and now PackageCount is automatically counted by given weight. You can download updated FedEx class from this post.