You are currently browsing the Tutorial category.

Zend-Framework Maintenance Plugin & Search Engines

Under Construction

A few months ago, I wrote an article about how to implement an “under maintenance” plugin using Zend Framework plugins. This plugin allows you to easily redirect users of your website to an “under maintenance” in case of a planned downtime. Simply set a flag in your application.ini and that’s it. In this post we will extend this plugin.
Continue Reading

Posted January 18th, 2012.

Add a comment

Smart Google Translate Wrapper for PHP

Sameer Borate published his version of a Google Translate Wrapper for PHP on his blog and on Google code. Actually, Sameer’s class pretty much does what I expected it to do, i.e. translating text. The only thing I didn’t like was the fact that – as Google’s API only accepts text up to 5000 characters – it simply creates chunks of text by chopping the text using a dumb str_split($text, 5000). So here is a smarter version of Sameer’s Google Translate Wrapper. Continue Reading

Posted February 4th, 2011.

3 comments - 1 pingback / trackback

PHP Introduction (Lecture Slides) Part I

This semester I am giving a lecture on Web Technologies. I’m not going to publish the slides on all the basic web stuff (HTML, CSS, …). However, for all those of you interested in programming with PHP and JavaScript, I will publish the PHP, JavaScript and jQuery slides. Basically, all the slides come with some sample source codes. All you need to execute the sources is a standard WAMP or LAMP installation. Continue Reading

Posted November 16th, 2010.

Add a comment

ZendCon 2010 Slides

Unfortunately, I didn’t had the time to participate in this years ZendCon :-(. For all those of you who had the same problem: here are the slides of the talks. Nearly all of the slides are very interesting for all those of you involved in any kind of web project. Continue Reading

Posted November 9th, 2010.

1 comment

ZIDS: Zend Framework Intruder Detection System

In one of my last posts I shared some information about PHP-IDS (the PHP Intruder Detection System project) with you. In this article, I would like to share a few lines of code that will enable you to easily integrate PHP-IDS into your Zend Framework project. Furthermore, this little plugin allows you to easily define how to deal with possible attacks (e.g., send an email to the admin, make a log entry, or redirect the attacker to a special side).
Continue Reading

Posted September 4th, 2010.

3 comments - 1 pingback / trackback

An “Under Maintenance” plugin for your web application

Let’s make a bet: if you don’t have to maintain your (professional) web application within a few weeks after release, I owe you a pint of beer. Maintaining websites can be a complex tast: you may have to adopt your database schema, batch jobs, PHP files, and so on. As your web site will be down during these tasks, you should inform your users that your application is under maintenance and when it will be online again. This simple Zend Framework plugin might help you.

Continue Reading

Posted July 12th, 2010.

3 comments - 3 pingbacks / trackbacks

An Image Gallery and Slideshow with Zend Framework and Dojo

Ever wanted to have a fancy image gallery and slideshow on your website? This tutorial will show you how to implement an image gallery for your Zend Framework application using Dojo (see screenshot). Dojo’s image gallery already comes with some very nice built-in features like a thumbnail picker or a slideshow. Continue Reading

Posted July 4th, 2010.

7 comments - 2 pingbacks / trackbacks

Making Zend Framework Applications More Secure (Part I)

Zend Framework already offers mechanisms to build secure web applications, e.g. filters. But why reinvent the wheel? PHP IDS (PHP-Intrusion Detection System) is an open source security layer for your PHP application. This tutorial will show you how to use PHPIDS in your Zend Framework application. Continue Reading

Posted June 13th, 2010.

6 comments - 4 pingbacks / trackbacks

How to render valid HTML using Zend Framework, Tidy & Firebug

Why not use a Zend Framework plugin which again uses Tidy to check the validity of all the HTML code generated by your scripts? Wouldn’t it be great to have something like this? Well, actually it would. Unfortunately, I have to admit that this wasn’t my idea ;-) – in fact it was Ryan Mauger who posted a very interesting article about this issue on his blog.

Interested? Follow this link to read Ryan’s post.

Posted June 4th, 2010.

Add a comment

Doctrine and Zend Framework

Doctrine is one of the most common ORM tools for PHP and Zend Framework is one of the best PHP application frameworks. So, bringing together Doctrine and the Zend Framework is like bringing together vanilla and chocolate ice cream (or whatever your favorite ice cream flavors are ;-)).

ORM is short for Object Relational Mapping and is basically a concept that helps you to bridge the gap between objects in object-oriented programming languages and records in relational database systems. This tutorial will show you how to use Doctrine in a Zend_Framework application. Continue Reading

Posted May 1st, 2010.

4 comments - 3 pingbacks / trackbacks

Site tools