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

browse by tag: oo programming

sort by

newest, oldest, most popular


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

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

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

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

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

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

Zend Framework on a shared host

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

When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/. This doesn't look very professional, so we'd like to remove it. The easiest way, given a ZF project created using Zend_Tool.

comment save report
category icon

Multiple select lists with jQuery, JSON and PHP

in PHP added by prodevtips, on 25/2/2010 AJAX json oo programming php5

Tutorial on how to prepopulate and save a multi select list selection by way of Ajax, JSON and jQuery.

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

A Lesson In Static Methods And Late Static Binding

in PHP added by goodphptutorials, on 21/4/2010 framework oo programming php5 zend framework

Until last week, I had never experienced what must have been incredibly frustrating to most developers: the fact that the self keyword in PHP refers to the class it is located in, and not necessarily a class that extends it. I personally ran into this problem when trying to extend Zend_Auth.

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

PHP Design Patterns Reference and Examples

in PHP added by goodphptutorials, on 30/4/2010 advanced tutorials design pattern oo programming php5

Quite a comprehensive list of programming design patterns illustrated with code examples in PHP5

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

Doctrine MongoDB Object Document Mapper

in PHP added by goodphptutorials, on 15/5/2010 doctrine oo programming orm php5

A question asked to me many times by many different people over the last year is, "will Doctrine ever have any support for MongoDB?". I have never really had an answer because we haven't had any official plans to support it as it was so new to the database world and php so nobody really knew much about it yet.

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

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

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

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

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.

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

comment save report
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

comment save report