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

browse by tag: php5

sort by

newest, oldest, most popular


category icon

MVC, XML and other animals

in PHP added by nou, on 22/3/2009 oo programming php5

This article will briefly expose the basics of the MVC pattern and put forward a template management system based on the duo XML/XSLT.

comment save report
category icon

Creating a MySQL Database Class Using the Singleton Design Pattern

in PHP added by thatspoppycock, on 24/3/2009 design patterns mysql oo programming php5 singleton

Using the Singleton Pattern is a simple way to limit the number of instances of an object to just one, helps keep database connections organized, and saves memory. This tutorial will help you create a MySQL database class using this popular design pattern.

comment save report
category icon

Parsing with Zend HTTP Client

in PHP added by prodevtips, on 28/3/2009 oo programming parsing php5 zend framework

Example of how Zend HTTP Client is used when parsing statistics, logging in to sites and handling cookies.

comment save report
category icon

Use Windows Login (Active Directory) For your PHP applications

in PHP added by Alpho011, on 10/4/2009 advanced tutorials database ldap php5

Use the username and password schemes that are already in place for logging in to your applications or websites. Great for intranet site work.

comment save report
category icon

PHP Tutorial on Classes, Inheritance, Polymorphism, Magic Methods & Exceptions

in PHP added by sunilbhatia79, on 15/4/2009 Inheritance Polymorphism _get _set class exceptions magic methods php5

This link contains links on various PHP5 tutorials. I have spent a lot of time learning PHP5 concepts and wish to share my learnings with you all via my blog

comment save report
category icon

Add Power to Your PHP With Multi-Tiered Applications

in PHP added by goodphptutorials, on 16/4/2009 multi-tier mvc php5

As PHP applications become more and more complex, it can be easy to end up with a tangled mess of code that makes maintenance nearly impossible. Applying the concept of tiered applications can help to alleviate some of the difficulty in maintaining complex applications.

comment save report
category icon

Image watermark with PHP

in PHP added by webmonitore, on 22/5/2009 advanced tutorials beginner tutorials content management general php5 security

To prevent quality images being stolen, we can use PHP to watermark web-images in popular formats like GIF/PNG/JPEG. We print a transparent gif-image on a jpeg-photo in this tutorial.

comment save report
category icon

How to Implement Text to Speech in PHP

in PHP added by cyberhitesh, on 10/6/2009 Festival php5 text to speech

One such application is Festival, it allows us to convert Text to Speech(WAV) format. In this article we will learn on how we can convert text to speech from PHP applications.

comment save report
category icon

MySql Prepared Statement in PHP

in PHP added by cyberhitesh, on 10/7/2009 advanced tutorials oo programming php5

I was wondering whether PHP also give a feature of Prepared Statement as you have in Java JDBC Connection. Prepared Statements are always better than normal statements as it prevent SQL Injection etc.

comment save report
category icon

How to Use PHP Namespaces, Part 1 The Basics

in PHP added by goodphptutorials, on 15/7/2009 namespace oop php5

Namespaces are one of the most significant changes in PHP 5.3. They will be familiar to C# and Java developers, and they are likely to change the structure of PHP applications for the better. [...] Name collision problems can be solved with namespaces. PHP constants, classes, and functions can be grouped into namespaced libraries

comment save report
category icon

Parse a String with BB Code or RSS

in PHP added by appdev, on 16/7/2009 bb code functions php5 string handling

Writing a function to parse BB Code and RSS Feeds each time you need them is a pain. Here’s a use function to throw into an include or just have on hand for later.

comment save report
category icon

Design Patterns in PHP [PDF]

in PHP added by nirajam, on 29/7/2009 advanced tutorials beginner tutorials oo programming php5

In this tutorial you learn some of the Design Patterns and how to implement them in PHP. These are an essential part of OOP and make your code more effective, better performing, and easier to maintain. Sometimes we implement these design patterns in our code without knowing that these solutions are defined by design patterns. Proper usage of the correct pattern can make your code perform better; similarly using them improperly could make your code slower and less efficient.

comment save report
category icon

Prepare for PHP 5.3

in PHP added by goodphptutorials, on 31/7/2009 cakephp migration php5 ubuntu

PHP 5.3 is a big leap forward for PHP and brings of a lot of neat features. However, big leaps can also mean big changes and potentially big breakage when it comes to backwards compatibility. I did some experimenting with running a big legacy application and a CakePHP application on PHP 5.3 and would like to share my findings with you. Here are a couple of tips to prepare your code for PHP 5.3

comment save report
category icon

Adding Ajax with jQuery to Joomla 1.5

in PHP added by prodevtips, on 3/8/2009 advanced tutorials content management mysql oo programming php5

How to quickly add Ajax anywhere in Joomla 1.5 using jQuery.

comment save report
category icon

Enhancing a URL Handling Helper Class in PHP 5

in PHP added by goodphptutorials, on 12/8/2009 beginner tutorials general php5 url

Are you a PHP developer wishing to find an approachable guide that walks you through building different kinds of helper classes in PHP 5? Then look no further, because this group of articles may be the material that you really need.

comment save report
category icon

Why PHP Frameworks Matter

in PHP added by goodphptutorials, on 13/8/2009 frameworks oo programming php5

n a 1998 interview with Dr. Dobb’s Magazine, creator of the Perl programming language Larry Wall concluded his answer to the final question with a tip I’ve never forgotten, remarking, “Take a good look at what you want to do, and try to come up with the long-term lazy way, not the short-term lazy way.” [1] To paraphrase another Larry Wall-ism, in the programming world “laziness is indeed a virtue”, and if you’re not a lazy programmer, then frankly you’re not trying hard enough.

comment save report
category icon

Zend Framework: File upload using Zend_Form_Element_File

in PHP added by goodphptutorials, on 20/8/2009 Zend framework oo programming php5

This post will be helpful for all people who are wishing to get some practicle example for using Zend_Form_Element_File of Zend framework's Zend_Form.

comment save report
category icon

Sending e-mails via SMTP with PHPmailer and Gmail

in PHP added by finalwebsites, on 3/9/2009 email gmail php5 phpmailer smtp

Using the SMTP server from Gmail is a good choice for mail application with less than 500 recipients a day. This tutorials shows you how to send mail messages via SMTP using PHPmailer and Gmail.

comment save report
category icon

PHP5 Database Iterators

in PHP added by goodphptutorials, on 29/9/2009 database interator oop php5

One feature of PHP rarely seen in production code is PHP Iterators. Iterators are not unique to PHP, as Java and C++ have them, but they are a powerful mechanism to increase code usability. A very useful feature of PHP Iterators is the ability to extend them to iterate over any type of array or object. A unique implementation of PHP Iterators is to quickly and easily iterate over a result from a SQL query against a database. This provides a fast and very memory efficient implementation for loading up many objects.

comment save report
category icon

Creating a secure PHP contact form

in PHP added by sneakybox, on 6/10/2009 contact form mysql php5 secure

An in-depth tutorial explaining how to create a spammer-stopping PHP contact form for your website.

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

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.

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

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