Building multipage forms (Intermediate)

by Uday Sawant | June 2013 | Open Source PHP Web Development

In this article, written by Uday Sawant who is also the author of Instant Building Multi-Page Forms with Yii How-to, we will separate our lengthy registration form into multiple pages.

Why do we need multipage forms? Because we don't want our visitors to scroll too much and want to enable them to fill out forms as quickly as possible. Multipage forms look much shorter than a single form and fit better without much change in design; most importantly, we can group the form fields in logical sections.

Read Building multipage forms (Intermediate) in full

A look into the high-level programming operations for the PHP language

by Włodzimierz Gajda | March 2013 | PHP

PhpStorm offers large number of high-level programming operations that will help you to write and inspect the PHP code. The following list provides a few examples of such operations:

  • Accessing documentation

  • Generating code

  • Generating class diagrams

  • Autoformatting

  • Inspections

This article by Wlodzimierz Gajda, author of Instant PhpStorm Starter, will give you an insight into the high-level programming operations of accessing documents and generating code.

Read A look into the high-level programming operations for the PHP language in full

Yii: Adding Users and User Management to Your Site

by James R. Hamilton III Lauren J. O'Meara | February 2013 | Open Source PHP Web Development

As web developers, we are always looking for new and better tools to help us develop quality websites. Yii caught our eye as a great framework. It is known for performance. In addition to its speed, Yii provides great tools and features to help you get your job done quickly.

In this article by Lauren J. O'Meara and James R. Hamilton III, authors of Yii Rapid Application Development Hotshot, we will add a user table to the application database, and then generate the Yii scaffolding and customize it. We will extend the user management interface to utilize our user table fields.


Read Yii: Adding Users and User Management to Your Site in full

Meet Yii

by Jeffrey Winesett | December 2012 | Open Source PHP

The name Yii is an acronym for Yes, it is, and is pronounced as Yee or (ji:). Yii is a high-performance, component-based, web application framework written in PHP5.

This article by Jeffrey Winesett, author of Web Application Development with Yii and PHP, provides you with a brief history of Yii, an introduction to the Model View Controller (MVC) application architecture, and you are introduced to the typical request life cycle as it makes its way from the end user through the application, and finally as a response back to the end user.

Read Meet Yii in full

Getting Started with CouchDB and Futon

by Tim Juravich | November 2012 | Open Source PHP Web Development

CouchDB is a NoSQL database which is making waves in the development world. It’s the tool of choice for many PHP developers so they need to understand the robust features of CouchDB and the tools that are available to them.

This article by Tim Juravich, author of CouchDB and PHP Web Development Beginner's Guide, defines CouchDB documents and shows how to manage them both from the command-line and within Futon – CouchDB's built-in administration utility.

Read Getting Started with CouchDB and Futon in full

HBase Administration, Performance Tuning

by Yifeng Jiang | August 2012 | Cookbooks MySQL Content Management Open Source Oracle PHP

Performance is one of the most interesting characteristics of an HBase cluster's behavior. It is a challenging operation for administrators, because performance tuning requires deep understanding of not only HBase but also of Hadoop, Java Virtual Machine Garbage Collection (JVM GC), and important tuning parameters of an operating system.

The structure of a typical HBase cluster is shown in the following diagram:

There are several components in the cluster—the ZooKeeper cluster, the HBase master node , region servers, the Hadoop Distributed File System(HDFS) and the HBase client.

The ZooKeeper cluster acts as a coordination service for the entire HBase cluster, handling master selection, root region server lookup, node registration, and so on. The master node does not do heavy tasks. Its job includes region allocation and failover, log splitting, and load balancing. Region servers hold the actual regions; they handle I/O requests to the hosting regions, flush the in-memory data store (MemStore) to HDFS, and split and compact regions. HDFS is the place where HBase stores its data files (StoreFile) and write ahead logs (WAL). We usually have an HBase region server running on the same machine as the HDFS DataNode, but it is not mandatory.

The HBase client provides APIs to access the HBase cluster. To communicate with the cluster, clients need to find the region server holding a specific row key range; this is called region lookups. HBase has two system tables to support region lookups—the -ROOT- table and the .META. table.

The -ROOT-table is used to refer to regions in the .META.table, while the .META.table holds references to all user regions. First, the clients query ZooKeeper to find the -ROOT-table location (the region server where it is deployed); they then query the -ROOT-table, and subsequently the .META.table, to find the region server holding a specific region. Clients also cache region locations to avoid querying ZooKeeper, -ROOT-, and .META.tables every time. With this background knowledge, we will describe how to tune HBase to gain better performance, in this article.

Besides HBase itself, other tuning points include Hadoop configurations, the JVM garbage collection settings, and the OS kernel parameters. These are as important as tuning HBase itself. We will also include recipes to tune these configurations, in this article.

In this article, by Yifeng Jiang, author of HBase Administration Cookbook, we will cover:

  • Setting up Hadoop to spread disk I/O
  • Using a network topology script to make the Hadoop rack-aware
  • Mounting disks with noatimeand nodiratime
  • Setting vm.swappinessto 0 to avoid swap
  • Java GC and HBase heap settings
  • Using compression
  • Managing compactions
  • Managing a region split
Read HBase Administration, Performance Tuning in full

Administrating the MySQL Server

by Marc Delisle | February 2012 | MySQL Content Management PHP

In this article wirtten by Marc Delisle, author of Mastering phpMyAdmin 3.4 for Effective MySQL Management, we will discus how a system administrator can use the phpMyAdmin server-management features for day-to-day user account maintenance, server verification, and server protection. The subject of how non-administrators can obtain server information from phpMyAdmin is also covered.

Server administration is mostly done via the Server view, which is accessed via the menu tabs available on phpMyAdmin's home page.

Read Administrating the MySQL Server in full

Ajax: Basic Utilities

by Milan Sedliak | December 2011 | AJAX PHP

In this article by Milan Sedliak, author of PHP Ajax we will learn how to build the basic Ajax forms. We will try to understand where we can use Ajax methodology and where we can't. There are a lot of ways in which we can use Ajax. Here are some "best" practices based on user experience and the performance of the specific system. Ajax makes our lives easier, faster, and better; how and where to use it is up to us.

In this article, we will cover the following topics:

  • Validating a form using Ajax
  • Creating an autosuggest control
  • Making form wizards
  • Uploading a file using Ajax
  • Creating a five star rating system
Read Ajax: Basic Utilities in full

Customizing the Menus Menu in Joomla!

by Hagen Graf | April 2008 | Joomla! MySQL Content Management Open Source PHP

There are numerous menus in the front end of every application. They are often displayed as standalone boxes. The menu items are generally arranged one below the other. Menus can also be integrated into the design horizontally so that at first sight they aren't even recognizable as cohesive menus. CSS menus, which can even be transparent, are very cool.

These menus and the menu links are dynamically administered in Joomla! from database content in the Menus work area. Joomla! has six different menus in the sample data. (main menu, top menu, other menu, user menu, example pages, and key concepts) In this article by Hagen Graf, we will discuss administering, creating and managing menus in Joomla!

Read Customizing the Menus Menu in Joomla! in full

Yii 1.1: Using Zii Components

by Alexander Makarov | September 2011 | Open Source PHP Web Development

Yii is a very flexible and high-performance application development framework written in PHP. It helps building web applications from small ones to large-scale enterprise applications. The framework name stands for Yes It Is.

In this article by Alexander Makarov, author of Yii 1.1 Application Development Cookbook, we will cover:

  • Using data providers
  • Using grids
  • Using lists
  • Creating custom grid columns
Read Yii 1.1: Using Zii Components in full
Syndicate content
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software