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

browse by tag: advanced tutorials

sort by

newest, oldest, most popular


category icon

Architecture Patterns: Domain Model and Friends

in PHP added by lornajane, on 24/6/2012 advanced tutorials design patterns oo programming oop php php5 techportal

An experienced developer gives us this great article with insight into a collection of patterns we can use to design our systems at a high level. This includes code for the patterns, and practical advice on choosing which is a good fit for your application

19 comments save report
category icon

Alternatives to MySQL

in PHP added by lornajane, on 8/6/2012 advanced tutorials drizzle mariadb mysql percona

Post covering the origins, intentions, features and possible pitfalls with replacing MySQL in your application with drizzle, mariadb or percona server. A very thorough overview of the options, by someone who has used them for real.

18 comments save report
category icon

A pluggable compiler and virtual machine in Php. Dogfood yourself with your own plugins!

in PHP added by eriksank, on 30/4/2012 advanced tutorials framework oo programming php

If you think compiler construction in a scripting language, such as Php, is indeed more fun than doing it in traditional C, you will like the following article too! We keep building our little compiler and virtual machine in Php. It now built entirely from plugins. Now you can take 5 minutes to create your own small plugin, to extend and improve the compiler and virtual machine. This has never been done before.

21 comments save report
category icon

BDD in PHP with Behat

in PHP added by lornajane, on 7/8/2011 PHPUnit advanced tutorials bdd behat php5 tdd techportal unit testing

Great article showing how BDD can be more intuitive than TDD, and showing you how to get started. The author, Marcello Duarte, is the lead developer of PHPSpec and an experienced software project lead and trainer

15 comments save report
category icon

Create an advanced PHP membership system,

in PHP added by thetitan, on 23/4/2011 advanced tutorials beginner tutorials content management general oo programming

Develop an advanced and extendable PHP MySQL membership system for use on your website.

4 comments save report
category icon

Detailed Guide to fwrite() Operations

in PHP added by BrandonEnr7, on 24/3/2011 advanced tutorials file handling php5

In this tutorial I will be deeply explaining in detail the many modes of the PHP function fwrite(). Yes, fwrite() is used to write data to files, however the way it is written to the file changes with each mode. In each mode, I will explain its purpose, provide an example, and then explain the code within the example.

73 comments save report
category icon

Getting Web Scale with Memcached

in PHP added by goodphptutorials, on 10/2/2011 advanced tutorials memcache php5

The web is huge, and there are a lot of people on it. Day and night, millions upon millions of people are on the web surfing, commenting, and contributing. Normally your blog gets a few hundred visitors a day ( a few thousand on a good day ), but what happens when that number increases? Can your database server handle all that load? Will Apache come screeching to a halt due to all of the requests? The answer is probably yes, unless you implement some form of caching. Many years ago this wasn’t a huge problem, but as the web and it’s user base has grown, so has the problem of "web scale"

57 comments save report
category icon

Unit Testing Databases with Zend Framework

in PHP added by lornajane, on 7/12/2010 PHPUnit advanced tutorials database database testing php5 unit testing

A detailed tutorial on using PHPUnit and Zend Framework to test operations produce the expected database results. The post gives a great background to the technique, walks you through it piece-by-piece, and offers the full code to download from github which you can use for yourself - nicely done!

comment save report
category icon

Profiling with XHGui

in PHP added by goodphptutorials, on 6/12/2010 advanced tutorials xhgui

Everyone wants a fast web site. Making one is a bit more difficult. Profiling code during development is easy, thanks to the excellent Xdebug extension (which also provides handy debugging tools), but this still leaves us blind in production, where we care the most. It’s also frequently more than a little different than the development machine.

comment save report
category icon

The EAV data model

in PHP added by lornajane, on 23/11/2010 advanced tutorials architecture databases modelling mysql

Clear and approachable post showing the use of the entity-attribute-value model to represent data. Includes great examples, tips on when this model is a good choice and when to use alternatives, and a real-world example examining how magento e-commerce uses this pattern.

comment save report
category icon

Understanding APC (techPortal)

in PHP added by lornajane, on 3/11/2010 APC advanced tutorials caching performance php5

This tutorial explains the installation and usage of APC as an opcode cache for PHP. It also goes on to discuss the use of APC as a data cache, and the circumstances under which this is relevant and useful. Useful for developers, administrators and architects alike, this in-depth tutorial gives clear detail on using APC

comment save report
category icon

PHP Dark Arts: Shared Memory Segments (IPC)

in PHP added by goodphptutorials, on 23/10/2010 advanced tutorials ipc

In my previous articles on using PHP for multi-process programming, we kept it very simple. By simple, I mean we didn’t have any inter-process communication (IPC). IPC is a set of techniques for the exchange of data amongst separate processes and/or threads. There are many different ways to set up IPC, such as files, signals, sockets, pipes, semaphores, shared memory, and message passing. This time around, we’re going to cover PHP’s implementation of shared memory segments.

comment save report
category icon

CI for PHP with Hudson

in PHP added by lornajane, on 26/9/2010 advanced tutorials best practice continuous integration php

A step-by-step tutorial for setting up Hudson as a build and continuous integration server for a PHP project. The author, Ben Longden, has great experience with this and it shows in this clear and approachable post

comment save report
category icon

Collecting Garbage: PHP's take on variables

in PHP added by goodphptutorials, on 16/9/2010 advanced tutorials php5

In this three part column I will explain the merits of the new Garbage Collection (also known as GC) mechanism that is part of PHP 5.3. Before we start with the intricate details of PHP's new GC engine I will explain why it is actually needed. This, combined with an introduction how PHP deals with variables in general is explained in this first part of the column. The second part will cover the solution and some notes on the GC mechanism itself, and the third part covers some implications of the GC mechanism, as well as some benchmarks. But now first on to the introduction.

comment save report
category icon

Migrating a Legacy Forum to vBulletin 4.0.3

in PHP added by prodevtips, on 22/7/2010 advanced tutorials content management mysql php5

How to switch from a legacy forum to vBulletin, and customizing vBulletin.

comment save report
category icon

Monte Carlo Simulations

in PHP added by goodphptutorials, on 2/7/2010 advanced tutorials modelling monte-carlo

Monte Carlo simulations are a handy tool for looking at situations that have some aspect of uncertainty, by modelling them with a pseudo-random element and conducting a large number of trials. There isn’t a hard and fast Monte Carlo algorithm, but the process generally goes: start with a situation you wish to model, write a program to describe it that includes a random input, run that program many times, and look at the results.

comment save report
category icon

Process Forking with PHP

in PHP added by goodphptutorials, on 16/6/2010 advanced tutorials daemon linux php5

Unix supports the process of forking which allows a parent process to spawn a subprocess and continue running both processes concurrently. It is possible to do this in PHP using the PHP Process Control Functions. Note that you should never attempt to use these process control forking functions when using a webserver; you should only fork applications when using the PHP command line client.

comment save report
category icon

How to use curl_multi() without blocking

in PHP added by goodphptutorials, on 15/6/2010 advanced tutorials curl

curl_multi is a great way to process multiple HTTP requests in parallel in PHP. curl_multi is particularly handy when working with large data sets (like fetching thousands of RSS feeds at one time). Unfortunately there is very little documentation on the best way to implement curl_multi. As a result, most of the examples around the web are either inefficient or fail entirely when asked to handle more than a few hundred requests.

comment save report
category icon

How to Authenticate Users With Facebook Connect

in PHP added by goodphptutorials, on 13/6/2010 advanced tutorials facebook php5

Lately, there’s been quite a fuzz about lazy registration. It turns out that the less the user has to think, the higher the conversion rates are! What a thought! If everybody seems to have a Facebook profile, why not add a one-click user registration? I’ll show you how to do that today.

comment save report
category icon

Mixins in PHP

in PHP added by goodphptutorials, on 5/6/2010 advanced tutorials mixin php5

One of the concepts I like in Ruby is the concept of "mixins". Mixins are a way of 'mixing in' functionality of other classes. A kind of 'multiple inheritance' like approach, only without actual inheritance. It is similar to interfaces, but interfaces only tell you that an object must implement certain methods, whereas mixins also provide an implementation.

comment save report
category icon

Web Services for PHP Developers

in PHP added by goodphptutorials, on 1/6/2010 advanced tutorials php5 rest soap web service xml-rpc

In this world of sharing data, increasing numbers of sites and applications are making information available over web services. Whether we are building a service as a feature of our own development, or pulling in the information published by others, we will need to understand the different service types and how to work with them in PHP. This article aims to give you the tools to do just that.

comment save report
category icon

Accessing Amazon Product Advertising API

in PHP added by goodphptutorials, on 26/5/2010 Amazon advanced tutorials oo programming php5 web service

In this post we will see how to access the Amazon Product Advertising API from PHP. Amazon has recently changed (from 15th Aug '09) the authentication mechanism for accessing their API which must now be signed with your Amazon keys

2 comments save report
category icon

Decoding a User Space Encoded PHP Script

in PHP added by goodphptutorials, on 14/5/2010 advanced tutorials encryption security

Every once in a while a new PHP encryption tool/service pops up and offers PHP “encryption”. Therefore the idea behind php-crypt that was announced today in the PHP Development forum of Xing is nothing new. Infact there are two types of PHP encryption systems source code obfuscators/encryptors/encoders and bytecode obfuscators/encryptors/encoders.

comment save report
category icon

Tips for Working with DateTime in PHP

in PHP added by lornajane, on 9/5/2010 advanced tutorials date oo programming time tips

A few quick tips for working with PHP's DateTime classes, including instantiating the objects, outputting in various formats, and storing dates and times an an accurate and easy-to-use way

2 comments save report
category icon

Writing a Custom Magento Module

in PHP added by lornajane, on 2/5/2010 advanced tutorials customisation ecommerce magento open source php zend framework

Magento module-building tutorial with example code shown and to download. Magento is an open source PHP ecommerce tool built on Zend Framework, this tutorial is a must-read for developers using this package

comment save report