Posts Tagged ‘PHP’

Facebook style photo tagging with jQuery, Ajax and Joomla

Sunday, October 11th, 2009

A demo of the functionality can be found in one of paceville.com’s galleries. Just click the first thumbnail. Update: To see the full images one now has to be registered so the demo is not easily accessible anymore.... Read More

This is what’s wrong with PHP

Wednesday, September 30th, 2009

Today was a bad PHP day, a very bad PHP day. Now all of the below is known by seasoned PHP coders already, you learn to live with it, however it does make for a good anectode, rarely does PHP’s crappier aspects converge in such a profound way to completely screw you up for hours on end.... Read More

Image manipulation and watermarking in PHP with GD2

Thursday, September 10th, 2009

The following functions are what I usually use to handle images in my projects. We’ve got reScaleImage which will resize and save an image, keeping aspect ratio.... Read More

Facebook style information box with jQuery

Thursday, August 27th, 2009

Update: Paceville.com is now online. The functionality of this article can be seen in people’s profiles, for instance here.... Read More

Hijacking controllers and views in Joomla

Wednesday, August 12th, 2009

Through our plgCommunityExt class what was described in the first article in this series it’s very easy to use controllers and views anywhere you like.... Read More

Hardening the Joomla hacks

Thursday, August 6th, 2009

I’m wrapping up the Joomla work here so it’s time to talk a bit about security. There are two main issues, sanitizing GET and POST and making sure people who are not supposed to call certain methods can’t do so. ... Read More

Zend Soap Client example - talking with Java services

Monday, June 8th, 2009

I’ve been doing some SOAP work lately (communicating with Java services by way of XML) and it’s time to recap how unbelievably hassle free and simple this is with the right tools.... Read More

The missing fluent MySQL wrapper

Thursday, April 30th, 2009

I just got a mail from John Fraboni, asking about that MySQL wrapper I’m using in my Zend AMFPHP tutorial. ... Read More

Compiling PHP 5.2.9 on Ubuntu

Monday, March 30th, 2009
[code]PGNvZGU+DQp0YXIgLXhqZiBwaHAtNS4yLjkudGFyLmJ6Mg0KDQpjZCBwaHAtNS4yLjkNCg0KYXB0LWdldCBpbnN0YWxsIHBocDUtZGV2IGxpYm15c3FsY2xpZW50MTUtZGV2IGJ6aXAyIGxpYmN1cmwzIGN1cmwgbGlicG5nMTItZGV2IGxpYmZyZWV0eXBlNi1kZXYgbGlibWNyeXB0NCBsaWJtY3J5cH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LS13aXRoLWljb252IC0td2l0aC1wZG8tbXlzcWwgLS13aXRoLWZyZWV0eXBlLWRpcj0vdXNyL2luY2x1ZGUvZnJlZXR5cGUyL2ZyZWV0eXBlDQoNCm1ha2UNCg0KbWFrZSBpbnN0YWxsDQo8L2NvZGU+[/code]

The above worked on Intrepid, below is an example that worked on Dapper. Here I have compiled as static libraries and put them in the /usr/local/lib dir:... Read More

Simple PHP class for parsing markup

Thursday, March 26th, 2009

In the Zend Client tutorial I touched upon a little bit of code I’ve written recently for retrieving poker player statistics from various backend affiliate sites.... Read More