PhpRiot
PhpRiot iPad App
Articles tagged PHP
Displaying articles 1 to 20 of 48

Zend Framework 101: Zend_Oauth

OAuth is a standard that allows to share protected data with other sites. In this article I will show you how to use the Zend_Oauth component of the Zend Framework. To demonstrate how to use Zend_Oauth we will create a script that posts a status update to Twitter for the authenticated user.

Accessing the Twitter API Screencast Video

Accessing the Twitter API Screencast
In this screencast I'll show you how to access the Twitter API using PHP. We'll use cURL to list a user's timeline and then to output tweets from a user's list.

Combining PHP, JSON and jQuery Screencast Video

Combining PHP, JSON and jQuery Screencast
In this screencast I'll show you how simple it is to make PHP communicate with a JSON data source using jQuery's Ajax functionality.

Zend Framework 101: Zend_Gdata_YouTube

The Zend Framework contains a number of APIs for accessing Google services, including YouTube. In this article I will show you how to retrieve a feed of videos from YouTube using Zend_Gdata.

Protecting Your PHP Source Code With ionCube Encoder

One of the issues PHP developers face is that PHP is an interpreted language, meaning PHP source code is readable by anybody who downloads your applications. In this article I will show you how to protect your intellectual property by encoding your PHP source code.

Speeding Up Your PHP Web Site

Google have recently announced that the speed of a web site is now used as a factor in determining its search rank. This is great news for the skillful PHP developer, since it allows you to gain an advantage over those not as dedicated to their art. In this article I will show you some of the steps I've taken to improve the performance of PhpRiot.com. These are all techniques you can easily adapt to your own web sites and web applications.

Zend Framework 101: Zend_Cache

In this article I will introduce you to the Zend_Cache component of the Zend Framework. This component is used for improving the performance of your web application by saving generated data for later reuse.

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.