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

browse by tag: oo programming

sort by

newest, oldest, most popular


category icon

Using Stored Procedures & MySQLI in PHP 5

in PHP added by rvdavid, on 11/12/2007 beginner tutorials database mysql oo programming php5

For the occasions that you want to use a stored procedure you've written in MySQL 5 through PHP , the semantic tool to use is PHP's built in mysqli objects/package.

comment save report
category icon

Implementing MVC in PHP: The Controller

in PHP added by goodphptutorials, on 5/2/2006 controller mvc oo programming oop patterns

Quite simply, the controller handles incoming requests. It uses input, in this case from the URI, to load a module and refresh/render the presentation layer. The controller for the aptly named Framework 1.0 uses a few GET arguments to figure out which module to load.

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

Writing a CMS/Community with Smarty and the Zend Framework Part 3

in PHP added by prodevtips, on 11/11/2007 advanced tutorials content management oo programming php5

The third part in a series on how to write a combination of a CMS and community with the Zend Framework and the Smarty templating system.

comment save report
category icon

Facebook style chat with jQuery and Joomla

in PHP added by prodevtips, on 29/3/2010 AJAX advanced tutorials oo programming php5

Tutorial on how to create a Facebook style chat with the help of jQuery and PHP.

comment 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

Desktop Application Development with PHP-GTK

in PHP added by gpt, on 31/3/2008 advanced tutorials desktop applications gui oo programming php5

PHP-GTK 2 is out, and with it, a fantastic means for PHP developers to build useful, reliable cross-platform desktop applications. In this tutorial, I'll show you how to get up and running with PHP-GTK in no time and build your first desktop application.

comment save report
category icon

Ajax, ZF and Smarty feed reader: part 3

in PHP added by prodevtips, on 24/11/2007 AJAX advanced tutorials oo programming php5

We take a look at the list feeds window and manage feeds window. Last part in the series.

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

Organize Your Project like a Pro with PHP Namespaces

in PHP added by goodphptutorials, on 20/5/2010 namespace oo programming php5

PHP took a huge step forward in June 2009 with the release of version 5.3. It wasn't quite as big of a change as version 5.0, but the release did introduce a number of new language features including namespaces — an addition that can dramatically improve the way you organize your PHP in an object oriented paradigm.

comment save report
category icon

Find your Files

in PHP added by goodphptutorials, on 22/4/2010 file handling framework oo programming php5 symfony

The best practices for finding files with PHP has evolved a lot in a the last few years. Back in 2004, one of the very first thing I did with PHP was porting the File::Find::Rule Perl module to PHP. File::Find::Rule is a great way to describe the files and directories you want to work with. I used the opendir, readdir, and closedir native PHP functions, and it did the job quite well. The PHP class was named sfFinder, and it can still be found in all symfony versions. Even if the class is bundled with symfony, I know that a few people use it for all kind of stuff, not necessarily related to symfony.

comment save report
category icon

Using Objects to Create an Application

in PHP added by goodphptutorials, on 16/1/2006 class design objects oo programming oop software design

This tutorial is the second in a series dealing with using objects to create an application -- building the application up from smaller parts -- and teaching important software engineering and design concepts that will be useful writing not only in PHP, but in other languages as well.

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

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

Display how many visitors online

in PHP added by ineedtutorials, on 3/1/2008 beginner tutorials database general oo programming php5

Ever wonderd how to display how many visitors you have online. In this tutorial i will show you an easy but effective way to display the amount of online visitor’s.

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

comment save report
category icon

PHP Doctrine introduction for dummies

in PHP added by prodevtips, on 18/8/2008 database oo programming php5

Short tutorial on how to create tables in a database and fetch information from said database with the Doctrine Object Relational Mapper.

comment save report
category icon

Extending PHP Doctrine Record

in PHP added by prodevtips, on 15/10/2008 advanced tutorials database oo programming php5

Here we extend PHP Doctrine records fromArray function to allow for check box group relations to be inserted in a straight forward way.

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

File Uploads with PHP Doctrine

in PHP added by prodevtips, on 12/9/2008 advanced tutorials databases oo programming php5

An example of how to integrate uploads into the Doctrine validation process.

comment save report
category icon

Creating and Using a Timing Class

in PHP added by goodphptutorials, on 4/12/2005 oo programming profiling timing

The purpose of this tutorial is to talk about two seperate concepts; profiling and object oriented programming (OOP).

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

Writing a CMS/Community with Smarty and the Zend Framework Part 6

in PHP added by prodevtips, on 7/12/2007 AJAX advanced tutorials content management oo programming php5

Shows how to setup a gallery with multiple uploads through a Shockwave made with the Flex SDK, also shows how to extend Zend Session to setup custom session ids.

comment save report
category icon

Five common PHP design patterns

in PHP added by goodphptutorials, on 16/12/2008 advanced tutorials oo programming patterns php5

Design patterns are just for Java™ architects -- at least that's what you may have been led to believe. In fact, design patterns are useful for everyone. If these tools aren't exclusive to architecture astronauts, what are they, and why are they useful in PHP applications? This article explains.

comment save report
category icon

Five common PHP design patterns

in PHP added by goodphptutorials, on 12/8/2006 architecture oo programming oop patterns

Design patterns are just for Java? architects -- at least that's what you may have been led to believe. In fact, design patterns are useful for everyone. If these tools aren't exclusive to architecture astronauts, what are they, and why are they useful in PHP applications? This article explains.

comment save report