Posts Tagged ‘PHP’

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+DQp0YXIgLXhqZiBwaHAtNS4yLjkudGFyLmJ6Mg0KDQpjZCBwaHAtNS4yLjkNCg0KYXB0LWdldCBpbnN0YWxsIHBocDUtZGV2IGxpYm15c3FsY2xpZW50MTUtZGV2IGJ6aXAyIGxpYmN1cmwzIGN1cmwgbGlicG5nMTItZGV2IGxpYmZyZWV0eXBlNi1kZXYgbGlibWNyeXB0NCBsaWJtY3J5cHQtZGV2IGxpYm1oYXNoMiBsaWJtaGFzaC1kZXYgbGlieG1sMi1kZXYgbGlieHNsdDEtZGV2IGFwYWNoZTItcHJlZm9yay1kZXYgbGlianBlZzYyLWRldiBmcmVldHlwZTIgbGlieGZ0IGxpYnhmdC1kZXYgbGliY3VybDQtZ251dGxzLWRldiBsaWJtY3J5cHQ0DQoNCi4vY29uZmlndXJlIC0td2l0aC1hcHhzMj0vdXNyL2Jpbi9hcHhzMiAtLXdpdGgtY29uZmlnLWZpbGUtcGF0aD0vZXRjL3BocDUvYXBhY2hlMi8gLS13aXRoLW15c3FsIC0tZW5hYmxlLWlubGluZS1vcHRpbWl6YXRpb24gLS1kaXNhYmxlLWRlYnVnIC0tZW5hYmxlLWJjbWF0aCAtLWVuYWJsZS1jYWxlbmRhciAtLWVuYWJsZS1jdHlwZSAtLWVuYWJsZS1kYmFzZSAtLWVuYWJsZS1kaXNjYXJkLXBhdGggLS1lbmFibGUtZXhpZiAtLWVuYWJsZS1mb3JjZS1jZ2ktcmVkaXJlY3QgLS1lbmFibGUtZnRwIC0tZW5hYmxlLWdkLW5hdGl2ZS10dGYgLS13aXRoLXR0ZiAtLWVuYWJsZS1zaG1vcCAtLWVuYWJsZS1zaWdjaGlsZCAtLWVuYWJsZS1zeXN2c2VtIC0tZW5hYmxlLXN5c3ZzaG0gLS1lbmFibGUtd2RkeCAtLXdpdGgtemxpYj15ZXMgLS13aXRoLW9wZW5zc2wgLS13aXRoLXhzbCAgLS13aXRoLWdkIC0td2l0aC1nZXR0ZXh0IC0td2l0aC1tY3J5cHQgLS13aXRoLW1oYXNoIC0tZW5hYmxlLXNvY2tldHMgLS1lbmFibGUtbWJzdHJpbmc9YWxsIC0tZW5hYmxlLW1icmVnZXggLS1lbmFibGUtemVuZC1tdWx0aWJ5dGUgLS1lbmFibGUtZXhpZiAtLWVuYWJsZS1zb2FwIC0tZW5hYmxlLXBjbnRsIC0td2l0aC1teXNxbGkgLS13aXRoLW1pbWUtbWFnaWMgLS13aXRoLWljb252IC0td2l0aC1wZG8tbXlzcWwgLS13aXRoLWZyZWV0eXBlLWRpcj0vdXNyL2luY2x1ZGUvZnJlZXR5cGUyL2ZyZWV0eXBlDQoNCm1ha2UNCg0KbWFrZSBpbnN0YWxsDQo8L2NvZGU+[/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

Zend Amf and class mapping with Flash CS3 / AS3

Tuesday, March 24th, 2009

Update: I just got a mail from Julien Iafrancesco:... Read More

Cleaning up and wrapping up

Tuesday, March 17th, 2009

Update: Smoc is dead, long live h2octrine!... Read More

Parsing with Zend HTTP Client

Monday, March 9th, 2009

I need to recap today’s adventures in parsing land, I’m currently writing a lot of different parsers that are retrieving information from various pages, sometimes I’m lucky and the info I want is available as CSV or XML, most often not.... Read More

jQuery Galleria with MODx multi-lang snippet

Monday, March 9th, 2009

The other day I wanted to try out jQuery Galleria, it didn’t work out of the box with jQuery 1.3.2. Galleria is using the old style @ syntax which doesn’t work anymore. You basically have to go through the whole plugin and replace lines like this:... Read More

Extending Smoc – Check Box Groups, Search and Pagination

Friday, February 27th, 2009

In the prior version we just had the basics, automatic listings of all entries in a table, update/inster forms with text fields, text areas and drop downs through a single Doctrine relation (hasOne). Now we add check box groups which will manage multiple relations (hasMany) through an intermediary relation table, search and pagination of the search results. ... Read More