Archive for the 'PHP' Category

Zend_Service_Technorati, Exceptions and partialLoop

Friday, May 22nd, 2009

I am utilizing Zend_Service_Technorati to tag search and when I return the results and loop through it via a partialLoop, an exception is thrown occasionally. One of the results does not have a valid uri and Zend_Uri_Http is throwing the exception based on the path (not sure whether Tehnorati is returning a invalid url or […]

Zend_Gdata and Fatal error: Allowed memory size

Saturday, May 2nd, 2009

Querying Youtube for videos via Zend_Gdata and ran into memory issues when searching for up to 20 videos. It was a simple fix, just had to up my memory_limit in php.ini. It was at 8M and I set it to 12M and am not running into any more issues. If you are on a shared […]

PHP 5.1.4 and Apache Problems

Thursday, April 30th, 2009

I know, I am behind the times. PHP 5.3 is almost ready for prime time, but I was still using PHP 5.1.4 I was having some major issues with Apache recently, although I don’t think it was Apache that was the problem. I wasn’t able to diagnose the problem, but I believe connections to […]

Zend_Paginator and Zend_Paginator_Adapter_Null

Sunday, April 19th, 2009

I have been playing around with Zend_Paginator a little more, and came across a use case where I didn’t want the Paginator to manage the data, i.e. I was feeling lazy and didn’t feel like writing a custom adapter. You can use Zend_Paginator_Adapter_Null to manage the pagination controls and simply pass in the total number […]

Zend_Paginator

Friday, April 3rd, 2009

I needed some pagination for a website I am building, so I took a look at Zend_Paginator. It is pretty straightforward and easy to use, especially if you are using the rest of the framework. The code below assume the class Foo extends Zend_Db_Table_Abstract, and grabs a Zend_Db_Select object from the table to pass in […]