Published News » Tutorials
Over the last few days I have been trying to use the Zend_Rest_Controller along with the Zend_Rest_Route to make a RESTful application for an API that I am working on. It is very easy to get things setup with these components and I will cover that now.
Asynchronous HTTP And HTML or AHAH is a technique which allows you to update parts of a DOM without reloading the entire page. In Drupal, AHAH refers to adjusting forms dynamically by changing a part of a form based on input given in other form elements without a page reload.
Today's pattern is the Observer one. The intent of this pattern is breaking a [usually one-to-many] dependency between objects by making the set of objects act as Observers of a Subject one, which notifies them when its state changes or is affected someway.
Application that you create in Flex 4 uses PHP and MySQL database. It shows the most simple and the most recent approach for working with data in Flash Builder 4/Flex 4. Basically it’s just a few clicks, which generate the necessary code. We use Flash Builder 4 Beta 2 introduced at MAX 2009.
I think I speak for a number of developers when I say that I strive to have my code readable and easy to maintain. This is way easier said than done as many of you know. The most familiar way of doing this is using the Model View Controller (MVC) concept.
We all agree that testing code is better than not testing it right? So why do we tend to avoid writing unit tests to make sure that we are writing code that works? I’m looking at you PHP guys. Good thing there is PHPUnit and it is as easy as can be to get started with it.
I have written a complete class which sends tweet and performs other stuff on twitter from following user to deleting Direct messages etc. But its just that I am not able to post the whole class here and explain it. I am gonna release a beta version of the class pretty soon with complete documentation, demoing and examples. Till then stay tuned and have a look at this simple script to connect to
This is the third article of a series of blog post called the WIMPinator Chronicles that describe how to setup a PHP development environment for Windows 7 and IIS 7.5.
So far we covered how to install a Wordpress blog and all its dependencies using the WPI (Web Platform Installer). Then we added additional features and extensions to the PHP deployment on Windows for IIS.
How to prevent SQL injection in PHP scripts is probably a topic that doesn’t need anything more written about it. It is pretty easy to find blog posts, documentation, videos, etc. that explain the importance of preventing SQL injection and suggestions for preventing it.
Like most PHP developers, I know a little bit about PHP's GD extension, which makes it remarkably simple to create dynamic images in JPEG, GIF or PNG formats. This comes in particularly handy when generating complex images, such as graphs and charts, from dynamic data sets at run-time.
Using Restrictive Constructors in PHP 5: What exactly is a restrictive constructor, and why would you want to use one? If you're a PHP programmer who uses such design patterns as Singleton and Factory, this series of articles on restrictive constructors will give you another tool to use in your applications.
Now that we have WINCACHE 1.1 Beta released which has got implementation for both user and session cache, one can easily take advantage of WINCACHE user cache and increase performance of Joomla. In this post I am going to tell you steps to use WINCACHE user cache with Joomla.
Have you ever dreamt about a powerful database that you can access easily, without using the SQL language? That what Apache CouchDB is all about. In this tutorial, I'm going to show you how to get started with this document-riented database and how you can use it with PHP.
This is the second article of a series of blog post called the WIMPinator Chronicles that describe how to setup a PHP development environment for Windows 7 and IIS 7.5.
In this part we are refining and enhancing the PHP runtime that we installed using the Web Platform Installer.
To protect site from dictionary attack or script kiddie you need a special PHP login script. The most important thing is that the value of hidden filed is changing and is random every time you load page login-form.php. So attacker that uses say cURL to attempt brute force attack will use the same value for for hidden filed and change usernames and passwords.
So even if he gets the right both use