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

goodphptutorials has submitted 407 links

category icon

What PHP Deployment Gets Right

in PHP added by goodphptutorials, on 14/1/2008 blog deployment mod_php

With the recent talk on the blogosphere about deployment (and for Django, and lots of other posts too), people are thinking about PHP a bit more analytically. I think people mostly get it wrong.

comment save report
category icon

Twitter: send message from a PHP page using Twitter API

in PHP added by goodphptutorials, on 4/1/2008 advanced tutorials api twitter webservice

This is a very simple tutorial (really just some line of code!) that explains how to post a message using Twitter API from a PHP page.

comment save report
category icon

Apache Tips and Tricks: Hide PHP version (X-Powered-By)

in PHP added by goodphptutorials, on 30/12/2007 apache headers security

You can configure apache to provide only a minimal amount of information about the installed software versions in its banner. But if you are using the PHP module in your web server (as most of us are), then there is one additional step that need to be completed, and this is what I will show you in this tip.

comment save report
category icon

Creating a three dimensional pie chart using Google's Chart API

in PHP added by goodphptutorials, on 26/12/2007 Chart advanced tutorials google api

I ran across this great, easy but very useful API a few days ago. Now for the tutorial.. let's assume we make a website for the TalkPHP soccerteam. They've played 10 matches (6 won, 3 draw, 1 lost). We'll be making a nice three dimensional pie chart of those stats! Let me point out one little disadvantage before we start: This API has a limit to 50,000 queries per 24 hours. But futhermore nothing fency!

comment save report
category icon

Auto Loading Classes in PHP 5

in PHP added by goodphptutorials, on 23/12/2007 advanced tutorials autoloading php5

Undoubtedly, the release of PHP 5 has had a remarkable impact on the way that object-oriented applications are developed nowadays. This highly-improved model has provided PHP programmers with features that were only present in mature object-based languages, like Java and C++, but now, fortunately for you and me, they are generously offered by this powerful server-side scripting language.

comment save report
category icon

How to Install PHP 5 on Linux

in PHP added by goodphptutorials, on 21/12/2007 beginner tutorials installation linux php5

This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all Linux-like operating systems.

comment save report
category icon

The state of functional programming in PHP

in PHP added by goodphptutorials, on 20/12/2007 advanced tutorials functional programming

With the rise of Javascript, and languages like Python and Ruby, functional programming is becoming more mainstream. Even Java seems to be getting closures in the next version, so does this leave PHP lacking behind or is there an unrealised potential hidden within?

comment save report
category icon

Becoming PHP 6 Compatible

in PHP added by goodphptutorials, on 18/12/2007 beginner tutorials compatibility php6

If you want to make use of PHP 6 when it comes, you're going to have to write your new scripts so they are compatible, and possibly change some of your existing scripts.
To start making your scripts PHP 6 compatible, I've compiled a list of tips to follow when scripting.

comment save report
category icon

Handling UTF-8 with PHP

in PHP added by goodphptutorials, on 16/12/2007 character encoding internationalisation php utf8

This article is intended as a reference for functionality PHP provides which can either help with handling UTF-8 or should be regarded as a risk when used in conjunction with UTF-8 encoded strings.

comment save report
category icon

The Singleton Pattern with PHP

in PHP added by goodphptutorials, on 3/12/2007 advanced tutorials oop pattern

The Singleton Pattern is often mistakenly referred to as the OOP nuts "Global variable".
Classes that utilise the Singleton Pattern aims to have a single instance throughout the lifetime of the request/process.

comment save report
category icon

Complete Members System

in PHP added by goodphptutorials, on 2/12/2007 databases intermedia user management

Nearly every website allows you (the visitor) to become a member of the site you're visiting. Typically, one will register a desired username, and setup a password, then fill out a bit of information to stock a profile, like: location, interests, etc. and you're done. You can then access parts of the site that were once restricted, participate in forum discussions and cast your vote on polls - you get the idea. But how is that done? How do they distinguish between members? How can I do that with my site? Read on and you will learn how to allow visitors to register as members, and allow them to login/logout of your website.

comment save report
category icon

Using Type Juggling/Type Casting to Modify Data Types

in PHP added by goodphptutorials, on 30/11/2007 beginner tutorials types

We're going to be dealing with type juggling in this article. This is the process of instructing PHP how to handle the value after the type juggling. Type juggling can do absolutely all sorts, from converting integers to floats, arrays to objects, and even strings to binary as of PHP 5.2.1. It can also save you calling various functions and thus making your script quicker!

comment save report
category icon

Introduction to PHPUnit

in PHP added by goodphptutorials, on 29/11/2007 advanced tutorials unit testing

In the last decade, PHP has developed from a niche language for adding dynamic functionality to small websites to a powerful tool making strong inroads into large-scale, business-critical Web systems. Financial institutions such as banks and insurance companies use PHP, for instance, to develop and maintain solutions for Basel II Credit Rating. Critical business logic like this needs to work correctly. But how do you ensure that it does? You test it, of course.

comment save report
category icon

Application-level Logging with the Zend Framework

in PHP added by goodphptutorials, on 28/11/2007 Zend advanced tutorials framework

There are different reasons for logging information, different strategies for what and how to log, and of course different ways of implementing it. This article will look at why you would want to log, what you want to log and how to do it.

comment save report
category icon

Using Zend framework Components In CakePHP

in PHP added by goodphptutorials, on 27/11/2007 Zend framework intermediate webservice

In this article I describe how to use Zend framework components in a CakePHP application by means of building a very simple CakePHP application using Zend_Service_Flickr, a component for accessing the Flickr web services.

comment save report
category icon

PHP Exception Handling

in PHP added by goodphptutorials, on 21/11/2007 beginner tutorials exception php5

With PHP 5 came a new object oriented way of dealing with errors. Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception.

comment save report
category icon

PHP PayPal ExpressCheckout Tutorial

in PHP added by goodphptutorials, on 19/11/2007 api beginner tutorials paypal

There are two different ways to use the PayPal API. The first, is the PayPal Direct Payment. PayPal Direct Payment will allow the customer to simply type in their information including their credit card number and process it invisibly through PayPal on your website.

comment save report
category icon

What is new in PHP 5.3 - part 3: mysqlnd

in PHP added by goodphptutorials, on 18/11/2007 database news php5

In the first two parts of this series I wrote about namaspaces and late static binding. In this part I will cover mysqlnd (MySQL native driver for PHP), which is also a really cool feature of PHP 5.3. This a replacement library (not an extension) for libmysql (MySQL Client Library) offering a lot of advantage over it.

comment save report
category icon

Advanced PHP: Working with Interfaces

in PHP added by goodphptutorials, on 16/11/2007 advanced tutorials oo programming

When you create an interface, you're basically creating a prototype/blueprint of functions that classes using the interface must implement in order to be valid. It's usually easier to learn from example, so here's a basic interface that represents a Page.

comment save report
category icon

Creating a Simple Currency Converter with Automatic Symbols

in PHP added by goodphptutorials, on 12/11/2007 beginner tutorials currency exchange rate

If you're from the UK then you'll appreciate this preface. If you're not then don't worry because I'll be doing the script from a USD perspective to satisfy the majority! Today we'll be making a currency converter, and as is common on Blue Peter, I'll be throwing bits of code at you like - here's one I made earlier! Basically what we'll be creating is a converter that automatically prepends the currency symbol to the front of the value and then works out the value in the currency that we specify.

comment save report
category icon

Paypal and NuSOAP

in PHP added by goodphptutorials, on 8/11/2007 intermediate paypal soap webservice

This is a quick guide to building webservice clients for Paypal SOAP webservices.

comment save report
category icon

Simplify e-mail validation routines with PHP

in PHP added by goodphptutorials, on 29/10/2007 email general regex regular expression verification

A very common task when building Web sites involves validating user-supplied e-mail addresses. In this article we'll show you how to use the powerful regular expression engine built into PHP.

comment save report
category icon

Dynamic XML document construction with the PHP DOM

in PHP added by goodphptutorials, on 26/10/2007 advanced tutorials dom xml

When working with XML-based applications, developers often find themselves facing the requirement to generate XML-encoded data structures on the fly. Examples of this include an XML order template based on user input in a Web form, or an XML representation of a server request or client response based on run-time parameters.

comment save report
category icon

Better Sessions

in PHP added by goodphptutorials, on 25/10/2007 cookies and sessions ip security session hijack

Sessions have inherent problems, as most developers know. A session ID can be easily hijacked, and that can cause major problems with security in a website. There are ways around this - in PHP you can set up sessions so that the session ID can only be transmitted using cookies, but then you prevent those without cookies from logging in. One way around this problem is to tie your session ids to the user's IP address.

comment save report
category icon

Squeezing code with xdebug

in PHP added by goodphptutorials, on 23/10/2007 advanced tutorials optimisation profiling

Every time we prepare to ship a new major version of phpLens (eg. 1.0, 2.0, 3.0 and soon 4.0), the PHP forms generator and app server we sell, we take pride in speeding things up. This is the time we all go into intensive code optimization sessions to find all the slow pieces of gunk we accidentally left in the code.

comment save report