This is a tutorial that teaches the users how to handle COM functions through a real PHP4 programming by using examples like ms office 2000 word, excel programs and adobe distiller program. This tutorial provides info to the users about the use of tag functions for PHP4 COM which can be used when the OOP construct does not work. This tutorial tells the users that they can reach the COM methods and properties by using the OOP class. In this tutorial the application program should document its COM methods and properties....
This is a tutorial where one can find more information about caching out put by using output buffering. This tutorial insists that two files are required to perform a perfect buffering over the output, one executes before the other PHP scripts and another one is for executing after certain PHP scripts. This tutorial also provides users step by step procedures that have to be followed in caching output. People can also find some sample codes to learn about output buffering.... Tags: files, find, information, using, learn, scripts, tutorial, sample, for, users, codes, out,
This is a tutorial which tells the users how to debug their programs created with php. The author says that this tutorial provides some information about use of debug in which every sentence must end with a period, spelling mistakes, time to proofread their code, etc. The author says to the users that in php every statement must end with a semicolon which is the easiest rule to remember and the most common error done by everyone but With much larger programs this error may not be so obvious....
This document's goal is to present the basic tNG features. We'll create a simple site that will be used to manage a company's departments and employees. Users will be able to display the existing departments, to add a new department, to edit or to delete an existing one. The same will apply for the employees.... Tags: create, delete, edit, site, manage, display, simple, basic, for, present,
This article covers several useful topics on PHP programming from basics to working with database. Main topics include: mod_php - Hello World, PHP Programming, Maintaining State on a Single Page, Maintaining State Between Multiple Pages, PHP Data Enabled App Using PostgreSQL, and Installing phplib in a Postgres Environment....
This article discusses three basic steps that can be taken to avoid creating bad code: ensuring that you can trust your input by verifying the input you receive from users, manipulating that input data carefully, and providing the appropriate people with secure, reliable access to that data....
This tutorial describes how to build a basic admin interface to allow you to add and delete users from the browser instead of having to Telnet into the mySQL monitor and do it manually. Main function dealt here is to create a dynamic drop down list populated with usernames in the MySQL database.... Tags:
A large portion of Web programming requires strings to be handled and generated, so knowing how to use and handle strings properly is extremely important for PHP programmers. This tutorial starts with the simple constructs used to create strings and moves through to more advanced techniques for string handling....
Templates provide a simple means to seperate server side code from client side code in our scripts. This article looks at when template systems are useful, their shortcomings and why template engines are a bad idea....
A very popular technique to better display content on your website utilizing MySQL and PHP to alternate your row colors of the tables your content is listed in....
Control structures are some of the coolest things in PHP. They take a lot of the work off of your shoulders and place the burden on the language itself. They are especially useful for making sites where you need to make a page do something over and over again. A simple looping statement, when used correctly, can pull all of that information for you and do it over and over again, thus making a large page like that a breeze. This article explains how to use these control structures and what each should be used for....
UML (Unified Modelling Language) is a mechanism for representing software in the form of diagrams. Essentially it allows to design our applications by drawing, and if the right tools existed, even generate code from the diagrams. In this article we`ll look at how PHP code is represented in UML terms, via use of the the UML class diagram....
This article explains one of possible ways of developing PHP applications in a team. Discussion include: Single `selector` file, Database abstraction layer, Embedding PHP, and Separation to files by functionality. To illustrate the ideas explained, the author wrote a small notebook application using a MySQL database, available for download....
In this second part of the series, it describes 7 common mistakes in PHP programming that will lead to drastically slower run times and less secure scripts, in addition to less maintainable code. Topics covered: Not Following Basic Naming Conventions (Variable Naming, Function Naming), Databases & SQL (Misapplying database functions, Misusing SQL: Not Fetching What You Need, Misusing SQL: Not Fetching What You Need), Lack of Error Checking, Overusing OO, Misusing Regular Expressions, Programming PHP Like It Was Some Other Language, and Not Being Security Conscious (System Call Security, Checking an e-mail address)....
This article by Tim Perdue at PHPBuilder.com offers helpful guide to some of the best practices in PHP coding style. Topics covered: Indenting, Control Structures, Function Calls, Using Comments, PHP Tags, and Strings....