PhpRiot
Displaying articles 21 to 40 of 71

Fetching Data With Zend_Db Snippet

In this PhpRiot Snippet I will show you a couple of different ways to fetch data when using the Zend Framework's Zend_Db component.

Implementing a WebDAV filesystem with PHP and SabreDAV

In this article I will show you how to create a WebDAV filesystem using PHP and the open-source library SabreDAV. Doing so allows you to map your web site as a local drive on your computer, meaning you can add, edit, move and delete files and folders on your web site just as you would with other files on your computer.

Detecting Ajax Requests With PHP Snippet

In this PhpRiot Snippet I will show you how you can check if a HTTP request is an Ajax request.

Downloading a Remote File With cURL and PHP Snippet

In this PhpRiot Snippet I will show you how to download a file from another web site and save it to disk.

Using Return Codes in PHP Snippet

In this PhpRiot Snippet I will show you to execute a command on your server and use its return code.

Singleton Classes in PHP Snippet

In this PhpRiot Snippet I will show you how to create and use singleton classes.

Storing Images in MySQL Revisited

This article shows you how you can store images in MySQL using the Blob column type. I will show you to create a file upload form, then store the uploaded file in the database. The concepts covered in this article can apply to all files in general, not just images. This is an updated version of a similar article that already appears on PhpRiot.

Zend Framework 101: Zend_Service_Amazon_S3

In this article I will introduce you to the Zend_Service_Amazon_S3 component of the Zend Framework. This component makes use of Amazon Web Services (AWS) to manage files on Amazon's Simple Storage Service (S3).

Zend Framework 101: Zend_Session

In this article I will introduce you to the Zend_Session component of the Zend Framework. This component is built upon PHP's native session-handling functionality, making it easier to manage session data, as well as providing more advanced features.

Zend Framework 101: Zend_Soap

In this article I will introduce you to the Zend_Soap component of the Zend Framework. This component allows you to easily create and consume SOAP web services. We will create a simple web service with several methods using Zend_Soap_Server, and consume the service with Zend_Soap_Client.

Zend Framework 101: Zend_Log

This article shows you how to use Zend_Log, the logging component of the Zend Framework. It allows you to record messages from your application however you please. In this article I will show you how to record messages to a log file. Additionally, if you use the Firebug and FirePHP plug-ins for Firefox, Zend_Log can be extremely useful for application development and debugging. I will also show you how to achieve this.

Zend Framework 101: Zend_Registry

In this article in the Zend Framework 101 series I will introduce you to the Zend_Registry class. This class used is to allow you manage variables and objects in the global application namespace. This is used as an alternative to using global variables in PHP. I will show you how to use the Zend_Registry class and also provide a practical example of where it would be useful to use the registry.

Zend Framework 101: Zend_Loader

In this article I will introduce you to Zend_Loader, a Zend Framework class used to automatically load other classes. Typically you would use include_once or require_once when you want to load a class but using Zend_Loader you don't have to.

Eight Weeks of Prototype: Week 8, A Complete Prototype Example

So far in this series, "Eight Weeks of Prototype," I have shown you some of the extensive features the Prototype JavaScript framework provides. In this, the final article of the series, I will bring many of these features together into a simple example.

Eight Weeks of Prototype: Week 7, Other Prototype Functionality

So far in Eight Weeks of Prototype I have covered the most important aspects of developing robust JavaScript using Prototype; however I haven't covered every available feature. In this article I will briefly discuss other aspects of development with Prototype, that while aren't necessarily core knowledge are still useful.

Eight Weeks of Prototype: Week 6, Writing JavaScript Classes with Prototype

While JavaScript is by design an object-oriented language, it hasn't always been the easiest language to create nicely structured code that is easily maintainable. Prototype helps with this by providing a number of useful features for creating classes, such as the ability to extend classes and to easily group all functions together by using function binding. In this article I will show you how to create classes using JavaScript and Prototype.

Eight Weeks of Prototype: Week 5, Ajax with Prototype

In addition to all of the other useful classes Prototype gives to developers, it also provides a number of classes and methods for development of Ajax-enabled web applications. That is, it allows developers to easily perform HTTP sub-requests using XmlHttpRequest and to handle the response accordingly. In this article I will show you how Prototype makes Ajax development for developers by covering the functionality it provides. Additionally, I will show you how to easily transfer data between your JavaScript code and web server using JSON data.

Eight Weeks of Prototype: Week 4, Event Handling in Prototype

One of the most useful and important aspects of JavaScript developments is that of event handling. Prototype simplifies this process by providing a number of helpful methods for doing so. In this, the fourth article of "Eight of Weeks of Prototype", we will look at how Prototype helps with handling events.

Eight Weeks of Prototype: Week 3, Prototype Data Types

In this, the third article in the "Eight Weeks of Prototype" series, I will teach you about the different data types that can be used in Prototype (on top of the existing JavaScript data types). We will firstly look at the basic string and number types, then look at enumerable types such as arrays and hashes.

Eight Weeks of Prototype: Week 2, How Prototype Extends Elements

When you select elements from the Document Object Model (DOM) using the functions Prototype provides, each returned element is extended with extra functionality. In this, the second article in "Eight Weeks of Prototype," I will show you exactly how Prototype extends these elements.