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

goodphptutorials has submitted 407 links

category icon

Writing an easy to use A/B test helper with CakePHP and jQuery

in PHP added by goodphptutorials, on 1/11/2009 ab test advanced tutorials cakephp framework jquery metrics

Knowing what is driving the user experience is key to the success of an application. Subtle changes in the interface can cause dramatic shifts in user behavior. Here, A/B tests display two (or more) language choices or color choices to a user (any HTML). Metrics are measured in two ways - 1) did the user click on the button at all and 2) how long did it take them to find it from the moment the page has started loading?

comment save report
category icon

CodeIgniter and jQuery - Real Live Search with Pagination

in PHP added by goodphptutorials, on 22/10/2009 AJAX advanced tutorials codeigniter framework jquery pagination

In this tutorial, we will create a search page with CodeIgniter and jQuery. We’re not gonna create only a default search page using CodeIgniter framework, but also a real time search with jQuery’s support. And one more, enable GET method in CodeIginter that was stupidly disable by default.

comment save report
category icon

Elegant Useful and Free PHP Graph/Chart Libraries

in PHP added by goodphptutorials, on 5/10/2009 Chart Graph flash visualization

For various kind of reports/applications graph and charts can play a very important role. Here are some of the free and open source chart libraries that you can use into your own PHP web projects. Use these to enhance the user experience and build a rich client presentation.

comment save report
category icon

Survive heavy traffic with your webserver

in PHP added by goodphptutorials, on 2/10/2009 PEAR apache caching disk IO linux mysql performance

There are many things you can do to speed up your website. This article focuses on practical things that I used, without any spending money on additional hardware or commercial software.

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

PHP Frameworks benchmarks

in PHP added by goodphptutorials, on 24/9/2009 benchmark framework

A nice visual overview of different PHP framework benchmarks

comment save report
category icon

How PHP became such a huge success

in PHP added by goodphptutorials, on 17/9/2009 general news

Linux Format magazine caught up with him to find out more about his position in the PHP camp today and the decisions he made early on that made the project a whopping success.

comment save report
category icon

How to Debug in PHP

in PHP added by goodphptutorials, on 15/9/2009 beginner tutorials debug

Nobody enjoys the process of debugging their code. If you want to build killer web apps though, it’s vital that you understand the process thoroughly. This article breaks down the fundamentals of debugging in PHP, helps you understand PHP’s error messages and introduces you to some useful tools to help make the process a little less painful.

comment save report
category icon

PHP Serialization And Recursion Demystified

in PHP added by goodphptutorials, on 10/9/2009 recursion serialize

PHP has different in-core callbacks able to help us with daily deployment, debug, improvements. At the same time, PHP is loads of intrinsic "gotcha", too often hard to understand, hard to explain, or simply hard to manage. One common problem is about debug, caching, or freezing, and the way we would like to debug, cache, or freeze, variables.

comment save report
category icon

Integrating FirePHP for Ajax Development

in PHP added by goodphptutorials, on 8/9/2009 JavaScript firefox firephp mozilla

There are many integrated development environments and tools available to aid in building Web 2.0 AJAX applications with PHP, but nothing comes close to the ease of use and tight Firebug integration that FirePHP provides.

comment save report
category icon

Top 10 ways to stop spam in WordPress

in PHP added by goodphptutorials, on 4/9/2009 spam wordpress

Spam is a nuisance, and as bloggers, we have all experienced a flood of spam every now and then. Not only is it a pain, but it can slow down your blog and use up your resources. In this post we'll look at ten ways to combat spam.

comment save report
category icon

Develop PHP Web Applications with NetBeans, VirtualBox and Turnkey LAMP Appliance

in PHP added by goodphptutorials, on 27/8/2009 netbeans virtualbox wordpress

In this article by Alfonso Romero, we will learn how to configure NetBeans, VirtualBox and the Turnkey LAMP Appliance to develop complex PHP applications in a virtual environment. This article explains the process of creating a virtual machine, configuring the NetBeans PHP IDE, and managing a WordPress project with NetBeans in a step wise manner.

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

10 Useful WordPress Hook Hacks

in PHP added by goodphptutorials, on 19/8/2009 beginner tutorials hook wordpress

Hooks are very useful in WordPress. They allow you to "hook" a custom function to an existing function, which allows you to modify WordPress' functionality without editing core files. In this article, we have compiled 10 extremely useful ready-to-use WordPress hooks, along with examples and coding explanations.

comment save report
category icon

Functional PHP 5.3 Part I - What are Anonymous Functions and Closures?

in PHP added by goodphptutorials, on 18/8/2009 advanced tutorials closure content management lambda

One of the most exciting features of PHP 5.3 is the first-class support for anonymous functions. You may have heard them referred to as closures or lambdas as well. There's a lot of meaning behind these terms so let's straighten it all out.

comment save report
category icon

Creating a Validation Helper Class

in PHP added by goodphptutorials, on 18/8/2009 beginner tutorials validation

Helper classes seem easy to build -- almost deceptively so. If you're building a helper class to assist with a crucial function, however, such as validation, the approach you need to take may seem a bit less straightforward. This fifth article in an eight-part series on building helper classes walks you through the process, complete with hands-on examples.

comment save report
category icon

Posting to WordPress with PHP and XML-RPC

in PHP added by goodphptutorials, on 14/8/2009 api wordpress xml-rpc

Recently, i’ve been working on a few projects that have required me to extend my programming reach in order to acheive things not normally encountered in your typical project. One of the things i’ve been required to accomplish with PHP lately is to post to WordPress automatically via an HTML form. On exploring the possible options I came across the XML-RPC and AtomPub remote publishing protocols. After briefly reviewing both protocols, for the sake of simplicity, I chose to use XML-RPC.

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

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

Adding Custom Panels to the CakePHP Status Plugin

in PHP added by goodphptutorials, on 11/8/2009 cakephp framework plugin status

There are two different ways to add a panel '" using requestAction or Ajax. The general rule is if the panel is pretty fast to load and content is static use requestAction. If the panel takes some time or you want to be able to interact with it then use Ajax. For example, the logs panel uses requestAction since it's pretty quick to grab the log entries and you really don't need to interact with them. The Google Analytics panel, on the other hand, takes a few seconds to query the API and has options to change the timeframe, so it uses Ajax.

comment save report
category icon

Playing with Zend_Navigation and routes

in PHP added by goodphptutorials, on 10/8/2009 Zend advanced tutorials framework routes

I wanted to set up routes in such way that when a user requests a page, all requests for non-existing controllers/modules are directed to a specific controller (not the error controller). In other words, if we have controllers IndexController, FooController and PageController, anything but http://example.com/index and http://example.com/foo is directed to the PageController.

comment save report
category icon

Comprehensive List of the PHP Object Relational Mapping Tools and Frameworks

in PHP added by goodphptutorials, on 6/8/2009 database orm

Object Relational Mapping (ORM), is a database design approach that makes entities stored in the database behave like objects (classes) from a programming perspective. ORM is a level above actual database operations – writing actual SQL queries is excluded from development and taken care of by ORM framework.

comment save report
category icon

17 PHP Practices That Should Be Banished Forever

in PHP added by goodphptutorials, on 6/8/2009 bad practise beginner tutorials general

The following is a list of 17 PHP programming practices that in my opinion should be banished into oblivion. Forever and ever. Amen.

comment save report
category icon

Pake PHP5 project build system

in PHP added by goodphptutorials, on 5/8/2009 ant build make pake

Often, while working on software projects, one finds, that there are repetitive tasks, which would be much easier to deal with, if automated. In the C/Unix world, this task is often solved by Make, Java programmers prefer Apache Ant, Ruby programmers use Rake. The fact, which is not commonly known, is, that PHP also has such instrument, and it is called Pake. It was originally created by authors of Symfony framework. Unfortunately, they never wrote any documentation, which killed adoption rates.

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