Articles tagged PHP
Displaying articles 1 to 20 of 59

Translating Text Using the Google Translate API and PHP, JSON and cURL

Google Translate is a service from Google that you can use to translate text or HTML from one language to another. One of the great features of this service is that they now offer an API to let you programmatically translate text. In this article I will show you how to interact with the Google Translate API.

Reducing a Map Path Using Douglas-Peucker Algorithm

When drawing a path on a map (for instance, the directions from point A to point B) it is important to consider the limitations of the device you're drawing the path on. In this article, I will show you how to reduce the number of points in a path so the path can be displayed with minimal loss of quality on devices such as iPhone or Android-powered devices that may struggle with an extremely large set of points.

Shortening URLs for with Google's URL Shortener API

In 2010 Google released its own URL shortener, which allows you to shorten URLs to use the domain. In this article I will show you how to easily create your own short URLs using their new URL shortener API.

PHP A to ZCE: Functions

One of the key features of nearly all programming languages is the ability to create reusable code that can be used on-demand. In PHP this is achieved with the creation of user-defined functions. In this article I will show you how to define and use functions in PHP.

PHP A to ZCE: Error Handling

One of the features of PHP is its comprehensive error-handling functionality. You can control many aspects of how errors are triggered and handled. In this article I will cover the key aspects of errors and error handling in PHP.

PHP A to ZCE: Databases and SQL

Databases are an extremely useful tool in web development as they allow you to store data about users, customers, e-commerce products and orders, or anything else. In this article I will cover the basics of using databases in PHP, including how to manage data using SQL.

Using Callback Functions in PHP

A commonly used technique when programming is to use callbacks. A callback is a piece of code that is passed to a function that is later executed by that function. In this article I will show you how to define and call callbacks in PHP, as well as a practical example of how callbacks can be useful.

PHP A to ZCE: Cookies

Cookies are used to store data on the computer of somebody who visits your web site. In this article I will show you how cookies work and how you can read and write cookies.

PHP A to ZCE: Bitwise Operations

Bitwise operations allow evaluation and manipulation of specific bits within an integer. In this article I will show each of the bitwise operations that are available and how to practically use them within PHP.

Verifying Apple App Store Receipts For In App Purchases With PHP and cURL Snippet

In this PhpRiot snippet I will show you how to verify a purchase receipt that was submitted by the iOS application with the Apple receipt verification service. We will achieve this using PHP and cURL and the App Store receipt verification service.

PHP A to ZCE: Arrays

Arrays in PHP are the most useful and versatile data structure available. In this article I cover all of the important points you need to know about to leverage the power of arrays in PHP.

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 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.