want to join us? register, it's easy | help
 

tutorials


category icon

10 PHP functions you (probably) never use

in PHP added by goodphptutorials, on 14/1/2010 beginner tutorials functions general

When scripting in PHP, we often restrict ourselves to a limited number of API functions: the common ones, like print(), header(), define(), isset(), htmlspecialchars(), etc. If some needed functionality doesn’t exist, we often write it making use of these basic components which we have in mind. The PHP API actually offers a lot of functionality, some useless and some useful; often seldom used. I have been looking through the available functions and was interested to find some really cool functions that I should have known about. Here, I share my findings.

comment save report
category icon

Transforming XML with PHP and XSL

in PHP added by lornajane, on 13/1/2010 advanced tutorials php5 xml xsl

Advanced tutorial on using XSL with PHP - including examples, tips and links to resources. A must-read for anyone needing to transform XML.

comment save report
category icon

Profiling with XHProf

in PHP added by lornajane, on 12/1/2010 benchmark optimisation php profiling scaling tutorial xhprof

Tutorial on using the XHProf tool, developed by facebook and released under the apache license, to look for bottlenecks and optimise performance

comment save report
category icon

Zend Framework on a shared host

in PHP added by goodphptutorials, on 10/1/2010 framework oo programming php5 zend framework

When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/. This doesn't look very professional, so we'd like to remove it. The easiest way, given a ZF project created using Zend_Tool.

comment save report
category icon

Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library (Zend_Oauth)

in PHP added by ducani, on 4/1/2010 oauth library twitter client zend framework

In this article I'll explore how to writea quick Twitter client so you can post tweets (those short messages of less than 140 characters) once authorised across the OAuth protocol.

3 comments save report
category icon

Understanding MVC in PHP

in PHP added by goodphptutorials, on 30/12/2009 advanced tutorials mvc oo programming

This article series (continued in Implementing MVC in PHP: The Controller, Implementing MVC in PHP: The View, and Implementing MVC in PHP: The Model) demonstrates how to build an MVC web framework using PHP 5. This article covers the basics of MVC web frameworks, building the foundation classes for a framework that the other three articles in this series will build.

comment save report
category icon

Port Scanning and Service Status Checking in PHP

in PHP added by ducani, on 26/12/2009 advanced tutorials port scanning service status

While building web applications, it's often important to keep an eye on the other services running on your server. Having access to the current status of public servers can empower your applications to make decisions and respond to problems automatically.

1 comment save report
category icon

Writing a daemon in PHP

in PHP added by besx, on 22/12/2009 daemon linux php5

Many browser based games need to run processes in the background to fulfill special tasks. Think of a chatsever that handles incoming messages and broadcasts them to all connected clients. For such a purpose one cannot rely on user-executed scripts or cronjobs. We need an approach that runs a set of commands all the time as a background process on the server. This is where daemons come in handy.

comment save report
category icon

Setting up your Git repositories for open source projects at GitHub

in PHP added by goodphptutorials, on 15/12/2009 advanced tutorials git github version control

Like a lot of projects in the Ruby on Rails world, the Insoshi social networking platform uses Git and GitHub to manage its open source development and contributions. In setting up the repositories for Insoshi, I've applied the version control experience I gained at Discover, where I was technical lead for the software configuration management (SCM) team. Since some aspects of our setup aren’t obvious if you haven't managed large projects before, we at Insoshi decided to share the details so that other GitHub projects might benefit as well.

comment save report
category icon

Facebook style photo tagging with jQuery, Ajax and Joomla

in PHP added by prodevtips, on 28/11/2009 AJAX advanced tutorials oo programming php5

Facebook style photo tagging with jQuery, Ajax and Joomla

2 comments save report
category icon

jQuery form plugin and PHP file uploads

in PHP added by finalwebsites, on 26/11/2009 AJAX forms jquery upload

jQuery and the form plugin are great tools to create Ajax powered contact or feedback forms. This tutorial shows how to use the jQuery form plugin and gives an example how-to create a form including form validation an upload function.

1 comment save report
category icon

Never write the same code twice: Dependency Injection

in PHP added by goodphptutorials, on 20/11/2009 dependency injection oo programming php5

Is Dependency Injection difficult? Is it hard to do? Certainly it provides value. Particularly in Php, but also in other object-oriented languages, Dependency Injection gives steroids to the process of class reuse, designing components as loosely coupled objects.

2 comments save report
category icon

Debugging PHP with Xdebug

in PHP added by betacoder, on 13/11/2009 debugging php notepad++ xdebug

The Xdebug is the extension for PHP that helps debugging PHP scripts by providing a lot of valuable debug information. Using the Xdebug you can debug your scripts in the Notepad++ and other PHP IDEs.

2 comments save report
category icon

PHP on the D-Bus

in PHP added by CalEvans, on 10/11/2009 advanced tutorials oo programming php5 podcast

The D-BUS Inter Process Communication mechanism is the basis for many system-related functionality on Linux-based systems. Both GNOME, KDE, as well as the Open Moko Linux computing platform use it extensively for everything related to talking to services and hardware. Skype, as well as other applications, provide D-BUS APIs as well. In this presentation I will be presenting a PHP/D-BUS integration to allow PHP to talk to D-BUS aware applications. I will demonstrate controlling Skype from PHP, as well as the implementation of PHP-GTK based applications on the OpenMoko to talk to, and use the different hardware services it offers, such as GSM and GPS. This talk should show a few things that people don’t really associate PHP with, and thus provide some insight that PHP’s strength is not only on the Web.

comment save report
category icon

Precision color searching with Gmagick and Amazon Elastic MapReduce

in PHP added by CalEvans, on 3/11/2009 advanced tutorials cloud gmagick php5

In this article we look at combining Amazon's cloud tools, PHP and Gmagick to perform color searching on photographs.

comment save report