Tutorials and Talks Useful PHP Snippets

PHP is the most widely used language when it comes to server-side programming. Whether you are a beginner or an advanced programmer and you use it in your work, this article will be very useful for you. A small collection of useful and interesting php snippets designed as finished functions, that can be easily transferred into a class or library file for later use.



How to Create an RSS Feed Using PHP and PDO

A great thing about the recent developments in social media and social networking, is the ability to easily distribute and share great unique content. But how can you get your content listed and indexed across the web?



10 Steps to Installing PHP 5.5 with PECL Memcached on CentOS 6/RHEL

On the moojuice.net website this week - This was a tricky one, although not as convoluted as getting memcached compiled on OSX. CentOS.6 does not come with PHP 5.5 so you have to look elsewhere. I don't trust any repositories other than EPEL and IUS. PHP 5.5 is available in the IUS repository, which is fantastic, but the repository is lacking a php55u-pecl-memcached package to easily install the extension. This article shows what you need to do to get it working.....



Contributing Advent 1: Xdebug and Hidden Properties

Last week Derick Rethans announced a new seasonal project, where he would be making an open source contribution for each day of the period. Here is the first contribution, a bug from Xdebug "Hidden Property Names Not Shown". Check his website daily for each new update.



Decoupling The Framework

We spend a lot of time discussing and analysing the features and merits of several frameworks, trying very hard to make sure we find the perfect one to use for our project. Rightfully so: picking the wrong framework can lead to a slew of issues down the road in terms of maintenance and scalability. But what if we didn't have to? What if the effect of picking the wrong framework could be negligible? Read Kristopher Wilson's article for all the answers.



How to Dynamically Localise TinyMCE

This article will teach you how to dynamically localise your TinyMCE editor. If you aren't familiar with TinyMCE, it's a what-you-see-is-what-you-get rich text editor for the web, built in JavaScript.



One-click App Deployment with Server-Side Git Hooks

This post shows the user how to deploy a simple website using no more than a git post-release hook. It covers just enough background information so that the reader can go further and expand their knowledge as their time permits.



Installing PHP 5.5 and Apache 2.4 on Windows 8

This tutorial shows how to install PHP 5.5 and Apache 2.4 on a Windows machine. This should work on any Windows operating system that PHP 5.5 supports.



Custom DTrace Probes for Perl on Oracle Linux 6

A few years ago, Chris Andrews developed the libusdt library for dynamic language developers to publish custom DTrace providers easily. Last September, Chris adapted his library so that it works with Oracle Linux 6 DTrace and the Unbreakable Enterprise Kernel 3. This post explains how to use Perl Devel::DTrace::Provider module in this context.



Create a RESTful API with Apigility

On the 7th October 2013, Zend introduced Apigility to the world. Once you get beyond the name, you see a very interesting project that allows you to easily create a web service without having to worry about the nitty-gritty details. Which details? Well, Apigility will handle content negotiation, error handling and versioning for you, allowing you to concentrate on your application. In the recently tagged 0.7 release, Apigility also supports both HTTP and OAuth2 authentication. In this tutorial we will create a simple REST API that allows us to view a list of music albums, showing how to start using Apigility and how to publish an API using this tool.



Translation and Text-to-Speech with Microsoft Translator

Text to speech is a popular technique used by many websites to provide their content in an interactive way. The generation of artificial human voice is known as Speech Synthesis. Even though it's highly popular, there are very few speech synthesis services, especially when looking for those free of charge. Microsoft Translator is one of the services we can use to get a speech service with limited features. In this tutorial, we are going to look at how we can use Microsoft Translator API to translate content and then make audio files using said content.



Clustering in PHP: Session Management

In the first two parts of this series (Introduction to Clustering in PHP and Clustered File Systems and PHP) we explored using the file system in various configurations to help cluster PHP. This final installation will explore another method that doesn't utilise PHP's session management in any way.



A Simplified World Cup Draw Generator

If you’re a football fan, your anticipation for next year’s World Cup in Brazil is growing. This Friday, we will know the groupings for the 32 teams that will participate in the finals. php[architect] has put together the (simplified) simulator shown in the gist below. Using PHP’s shuffle() function and SPL iterators, we can generate potential groups in less than 30 lines of code. PHP is the most widely used language when it comes to server-side programming. Whether you are a beginner or an advanced programmer and you use it in your work, this article will be very useful for you. A small collection of useful and interesting php snippets designed as finished functions, that can be easily transferred into a class or library file for later use.A great thing about the recent developments in social media and social networking, is the ability to easily distribute and share great unique content. But how can you get your content listed and indexed across the web?On the moojuice.net website this week - This was a tricky one, although not as convoluted as getting memcached compiled on OSX. CentOS.6 does not come with PHP 5.5 so you have to look elsewhere. I don't trust any repositories other than EPEL and IUS. PHP 5.5 is available in the IUS repository, which is fantastic, but the repository is lacking a php55u-pecl-memcached package to easily install the extension. This article shows what you need to do to get it working.....Last week Derick Rethans announced a new seasonal project, where he would be making an open source contribution for each day of the period. Here is the first contribution, a bug from Xdebug "Hidden Property Names Not Shown". Check his website daily for each new update.We spend a lot of time discussing and analysing the features and merits of several frameworks, trying very hard to make sure we find the perfect one to use for our project. Rightfully so: picking the wrong framework can lead to a slew of issues down the road in terms of maintenance and scalability. But what if we didn't have to? What if the effect of picking the wrong framework could be negligible? Read Kristopher Wilson's article for all the answers.This article will teach you how to dynamically localise your TinyMCE editor. If you aren't familiar with TinyMCE, it's a what-you-see-is-what-you-get rich text editor for the web, built in JavaScript.This post shows the user how to deploy a simple website using no more than a git post-release hook. It covers just enough background information so that the reader can go further and expand their knowledge as their time permits.This tutorial shows how to install PHP 5.5 and Apache 2.4 on a Windows machine. This should work on any Windows operating system that PHP 5.5 supports.A few years ago, Chris Andrews developed the libusdt library for dynamic language developers to publish custom DTrace providers easily. Last September, Chris adapted his library so that it works with Oracle Linux 6 DTrace and the Unbreakable Enterprise Kernel 3. This post explains how to use Perl Devel::DTrace::Provider module in this context.On the 7th October 2013, Zend introduced Apigility to the world. Once you get beyond the name, you see a very interesting project that allows you to easily create a web service without having to worry about the nitty-gritty details. Which details? Well, Apigility will handle content negotiation, error handling and versioning for you, allowing you to concentrate on your application. In the recently tagged 0.7 release, Apigility also supports both HTTP and OAuth2 authentication. In this tutorial we will create a simple REST API that allows us to view a list of music albums, showing how to start using Apigility and how to publish an API using this tool.Text to speech is a popular technique used by many websites to provide their content in an interactive way. The generation of artificial human voice is known as Speech Synthesis. Even though it's highly popular, there are very few speech synthesis services, especially when looking for those free of charge. Microsoft Translator is one of the services we can use to get a speech service with limited features. In this tutorial, we are going to look at how we can use Microsoft Translator API to translate content and then make audio files using said content.In the first two parts of this series (Introduction to Clustering in PHP and Clustered File Systems and PHP) we explored using the file system in various configurations to help cluster PHP. This final installation will explore another method that doesn't utilise PHP's session management in any way.If you’re a football fan, your anticipation for next year’s World Cup in Brazil is growing. This Friday, we will know the groupings for the 32 teams that will participate in the finals. php[architect] has put together the (simplified) simulator shown in the gist below. Using PHP’s shuffle() function and SPL iterators, we can generate potential groups in less than 30 lines of code.