Category Archives: micro tutorial

Iterate over YouTube Channel with Zend_Gdata_YouTube

Read YouTube’s Feed in Zend App The task is to read the entire Gdata from a YouTube’s channel. It may sound easy, but as you may know Gdata is based on the Atom publishing protocol, and it naturally gives you … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , , , , , , , , , , | 1 Comment

Setting a Zend Framework _redirect Referer

Seems to be impossible, just because the only parameters you can set are far less than setting a referrer. Thus you’ve to rely on your browser capabilities. However the most reliable way is to redirect with referrer in mind. Something … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , | 2 Comments

How to Sanitize User Input in PHP?

It’s a question almost every PHP developer asks yourself. By me the most simple way to sanitize the user input is to save everything in the database with no loosing of tags or whatever HTML markup and than on displaying … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , | 3 Comments

Custom Routes with Zend_Controller_Router_Route

Rewrite The Url? Actually this is really a common task to do. You’ve to rewrite the url to be more “user friendly”. To be more clear I’ll give you an example. Let’s imagine you have a index controller and an … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , , , , | 4 Comments

Zend_Http_Client and Case Sensitivity

Recently I posted about Zend_Http_Client and the ability to check a request HEAD or GET. It is, as everything in Zend Framework, extremely easy to adopt and use, but today I experienced some “strnage” problems! As I wrote some lines … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , | 3 Comments