|
Unlike PHP 3, PHP 4.0 has
This article explains one of
Templates provide a simple
This article is intended for
built-in capabilities to
possible ways of developing
means to seperate server
the PHP programmer
handle session management.
PHP applications in a team.
side code from client side
interested in avoiding some
The session management
Discussion include: Single
code in our scripts. This
of the most common mistakes
functionality in PHP 4.0 is
'selector' file, Database
article looks at when
when applying PHP. This
easy to use, powerful and
abstraction layer, Embedding
template systems are useful,
first part of the article
open for custom
PHP, and Separation to files
their shortcomings and why
series presents a list of 7
modifications. Creating
by functionality. To
template engines are a bad
mistakes that while not
sessions allows you to keep
illustrate the ideas
idea.
critical, will lead to
track of the actions of a
explained, the author wrote
slower and less maintainable
particular user over the
a small notebook application
code. Topics includes:
period of time she is
using a MySQL database,
Improper use of printf,
viewing your web site. To
available for download.
Misapplying Semantics, Lack
associate session data with
of Inline Documentation, Too
a user, you need a session
many variables, too much
identity number, that is, a
time, Rewriting existing PHP
key that ties the user to
functions, Not separating
his data. This tutorial
client side from server
discusses how to open
side, and Using Outdated
sessions, track session
Paradigms.
data, and clear the data
when you no longer need it.
Date: Jun, 19 2000 Date: Jun, 23 2001 Date: Dec, 04 2002 Date: Oct, 21 2000 |
|
In this second part of the
In this last part of the
Over 150,000 pages of unix
A large portion of Web
series, it describes 7
"Top 21 PHP Programming
manual pages, and open
programming requires strings
common mistakes in PHP
Mistakes" series, the
source documentation in
to be handled and generated,
programming that will lead
discussion involves what the
multiple languages +
so knowing how to use and
to drastically slower run
author calls 7
documentation on php, and
handle strings properly is
times and less secure
"deadly" mistakes.
python in multiple languages
extremely important for PHP
scripts, in addition to less
These are conceptual
programmers. This tutorial
maintainable code. Topics
mistakes such as not
starts with the simple
covered: Not Following Basic
allotting enough time for a
constructs used to create
Naming Conventions (Variable
project, not having a
strings and moves through to
Naming, Function Naming),
thorough code review, etc.
more advanced techniques for
Databases & SQL
string handling.
(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).
Date: Oct, 21 2000 Date: Jan, 19 2001 Date: Dec, 02 2004 Date: Jun, 19 2000 |