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

goodphptutorials has submitted 407 links

category icon

Why PHP Was a Ghetto

in PHP added by goodphptutorials, on 20/4/2011 general

I was talking with the Co-founder of a pretty cool start-up in DUMBO the other day about why the non-PHP development world generally has such disdain for PHP and the community surrounding it. He brought up an interesting point that stuck with me, largely because I hadn’t heard it before.

comment save report
category icon

PHP Caching to Speed up Dynamically Generated Sites

in PHP added by goodphptutorials, on 23/2/2011 beginner tutorials cache

This entire site, like many, is built in PHP. PHP provides the power to simply 'pull' content from an external source, in the case of my site this is flat files but it could just as easily be an MySQL database or an XML file etc..

comment 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"

comment save report
category icon

Prism: a new highlighting engine

in PHP added by goodphptutorials, on 4/2/2011 php5 syntax

A new PHP5 syntax highlighter

comment save report
category icon

ToroPHP - a tiny framework for PHP

in PHP added by goodphptutorials, on 15/1/2011 framework php5

A new web framework for PHP which aims to be very small and fast

comment save report
category icon

How To Safely Store A Password

in PHP added by goodphptutorials, on 13/12/2010 bcrypt beginner tutorials security

These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. This means that they are fantastic for ensuring the integrity of data and utterly rubbish for storing passwords.

comment save report
category icon

25 Tips for Intermediate Git Users

in PHP added by goodphptutorials, on 8/12/2010 git version control

I’ve been using git for about 18 months now and thought I knew it pretty well. Then we had Scott Chacon from GitHub over to do some training at LVS, a supplier/developer of betting/gaming software (where I’m currently contracting) and I learnt a ton in the first day.

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

PHP Advent 2010: Localization

in PHP added by goodphptutorials, on 3/12/2010 localization oo programming php5

When creating a web site, it is important to consider the audience. Regardless of whether the web site is selling goods, providing a service, or making information available, one should consider how the site will be displayed to a visitor from another country. If visitors want to buy something, use the service, or read the information provided, will the web site be able to accommodate them? Should it? Localization allows the user interface to accommodate a user’s expectations for the display of dates, currency, and text specific to their locale.

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

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

Facebook to kill IE6 support for Chat on IE9 beta day

in PHP added by goodphptutorials, on 27/8/2010 facebook ie6 news

Facebook has announced that it will soon end Internet Explorer 6 support for Facebook Chat. The kill date is September 15—the same day Microsoft plans to release the first IE9 beta. Today's announcement comes just a week after Microsoft launched a beta version of Windows Live Messenger that integrates with Facebook Chat.

comment save report
category icon

10 Signs of Crappy PHP Software

in PHP added by goodphptutorials, on 4/7/2010 beginner tutorials

Like it or not, as a professional developer, sooner or later you are going to do some customising (if you are lucky, "extending") of existing software.

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

How to Display Facebook Fan Count in Text

in PHP added by goodphptutorials, on 19/6/2010 beginner tutorials facebook php5

Adding a Facebook Like Button on your website or blog is perhaps one of the easiest and most effective way to get more fans and earn more likes. If you have hundreds, thousand or perhaps tens of thousand of fans, it might be a good idea to publish a fan count. Fan count displays in numeric text total fans your Facebook page has, or rather, how many have liked your page.

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

Integrating WordPress with Your Website

in PHP added by goodphptutorials, on 15/6/2010 beginner tutorials wordpress

By nature, WordPress is very powerful. It can be as complex or as simple as you wish. With that in mind, how much you want to use WordPress with your existing website is totally up to you. There may be only a few features of WordPress you want to use when integrating it with your site, or you may want your entire site run with WordPress.

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

PHP Optimization Mistakes [pdf]

in PHP added by goodphptutorials, on 12/6/2010 beginner tutorials optimization php5

Presentation from the Dutch PHP conference 2010 about common optimizations mistakes in php

comment save report
category icon

State of the Zend Framework 2.0

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

The past few months have kept myself and my team quite busy, as we've turned our attentions from maintenance of the Zend Framework 1.X series to Zend Framework 2.0. I've been fielding questions regularly about ZF2 lately, and felt it was time to talk about the roadmap for ZF2, what we've done so far, and how the community can help.

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

comment save report
category icon

Writing an OAuth Provider Service

in PHP added by goodphptutorials, on 23/5/2010 oauth oo programming php5

Last year I showed how to use pecl/oauth to write a Twitter OAuth Consumer. But what about writing the other end of that? What if you need to provide OAuth access to an API for your site? How do you do it?

comment save report