|
This article by Tim Perdue at
A discussion on PHP
This article is intended for
There's a lot of PHP code
PHPBuilder.com offers
development on Windows
the PHP programmer
available for free on the
helpful guide to some of the
platform. It covers
interested in avoiding some
net but also not all of it
best practices in PHP coding
installation, how to enable
of the most common mistakes
can run on your system as it
style. Topics covered:
functionality through
when applying PHP. This
is. This article shows you
Indenting, Control
extensions (DLLs), sending
first part of the article
how to distribute a setup
Structures, Function Calls,
mail, Filesystem functions,
series presents a list of 7
required by your program to
Using Comments, PHP Tags,
and using COM.
mistakes that while not
run.
and Strings.
critical, will lead to
slower and less maintainable
code. Topics includes:
Improper use of printf,
Misapplying Semantics, Lack
of Inline Documentation, Too
many variables, too much
time, Rewriting existing PHP
functions, Not separating
client side from server
side, and Using Outdated
Paradigms.
Date: Jan, 04 2001 Date: Nov, 14 2000 Date: Oct, 21 2000 Date: Aug, 26 2002 |
|
In this last part of the
In this second part of the
A large portion of Web
This article is intended for
"Top 21 PHP Programming
series, it describes 7
programming requires strings
experienced PHP programmers
Mistakes" series, the
common mistakes in PHP
to be handled and generated,
interested in exploring PHP
discussion involves what the
programming that will lead
so knowing how to use and
5's support for working with
author calls 7
to drastically slower run
handle strings properly is
class types through argument
"deadly" mistakes.
times and less secure
extremely important for PHP
hinting, abstract classes
These are conceptual
scripts, in addition to less
programmers. This tutorial
and interfaces. Basic
mistakes such as not
maintainable code. Topics
starts with the simple
knowledge of object-oriented
allotting enough time for a
covered: Not Following Basic
constructs used to create
programming, including the
project, not having a
Naming Conventions (Variable
strings and moves through to
anatomy of a class and the
thorough code review, etc.
Naming, Function Naming),
more advanced techniques for
mechanics of inheritance, is
Databases & SQL
string handling.
assumed.
(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: Jan, 19 2001 Date: Oct, 21 2000 Date: Jun, 19 2000 Date: Mar, 31 2006 |