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

news


CodeLovely.com starts beta testing

Hi folks, I've launched a new website called codelovely where developers and web designers can get together and share links. It's like goodphptutorials, but users get to vote up or down links that are posted. So, sign up posts some links, snapshots, code or ask questions.

 

tutorials


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

Search without refreshing page using jQuery, Ajax and PHP.

in PHP added by foxscan, on 8/8/2009 AJAX advanced tutorials database jquery mysql

This tutorial about how to display twitter like search results with jQuery and Ajax. When you click the search button the results will display on the same page. This is very interesting and simple.

comment save report
category icon

Upload images for usage in TinyMCE

in PHP added by finalwebsites, on 7/8/2009 CMS images tinymce upload

TinyMCE is a great online WYSIWYG editor which is used for a lot of projects. If you don't like the commercial file manager by moxiecode, this tutorial is for you. Using the advanced image functions in TinyMCE and the upload class from finalwebsites.com it's possible to create a simple function to insert uploaded images into your content windows of TinyMCE.

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

Using PHP, AJAX to display Google Maps data

in PHP added by kombattom, on 4/8/2009 AJAX google api jquery map api mysql

A pretty much step by step guide on how I created MarylandLawyerSearch.net. Data is pulled using PHP, put into JavaScript and Google's Map API. Source code for all files are listed with step by step instructions.

comment save report