|
This article discusses three
This article is intended for
In this second part of the
The built-in COM
basic steps that can be
the PHP programmer
series, it describes 7
functionality of PHP4 is
taken to avoid creating bad
interested in avoiding some
common mistakes in PHP
quite attractive for some of
code: ensuring that you can
of the most common mistakes
programming that will lead
us programming in the win32
trust your input by
when applying PHP. This
to drastically slower run
environment. So far, there
verifying the input you
first part of the article
times and less secure
is not much documentation on
receive from users,
series presents a list of 7
scripts, in addition to less
the subject. This short
manipulating that input data
mistakes that while not
maintainable code. Topics
article will explain how to
carefully, and providing the
critical, will lead to
covered: Not Following Basic
use COM in real PHP4
appropriate people with
slower and less maintainable
Naming Conventions (Variable
programming with three
secure, reliable access to
code. Topics includes:
Naming, Function Naming),
examples using MS office
that data.
Improper use of printf,
Databases & SQL
2000 Word and Excel programs
Misapplying Semantics, Lack
(Misapplying database
and the Adobe Distiller
of Inline Documentation, Too
functions, Misusing SQL: Not
program.
many variables, too much
Fetching What You Need,
time, Rewriting existing PHP
Misusing SQL: Not Fetching
functions, Not separating
What You Need), Lack of
client side from server
Error Checking, Overusing
side, and Using Outdated
OO, Misusing Regular
Paradigms.
Expressions, Programming PHP
Like It Was Some Other
Language, and Not Being
Security Conscious (System
Call Security, Checking an
e-mail address).
Date: Nov, 03 2000 Date: Oct, 21 2000 Date: Oct, 21 2000 Date: Oct, 11 2000 |
|
Classes and objects are
Control structures are some
This tutorial describes how
This tutorial teaches you how
powerful OOP concepts - and
of the coolest things in
to build a basic admin
to write and use classes, to
PHP4 supports them too. This
PHP. They take a lot of the
interface to allow you to
make your PHP code more
article explains some basic
work off of your shoulders
add and delete users from
flexible and easier to
OO entities (including
and place the burden on the
the browser instead of
manage. The tutorial guides
classes, constructors and
language itself. They are
having to Telnet into the
you through the construction
extensibility) with examples
especially useful for making
mySQL monitor and do it
of a simple,
of a table builder and a
sites where you need to make
manually. Main function
security-related class that
guestbook.
a page do something over and
dealt here is to create a
performs some basic security
over again. A simple looping
dynamic drop down list
functions for a web site:
statement, when used
populated with usernames in
checking user logons. The
correctly, can pull all of
the MySQL database.
class implements security
that information for you and
features that answer some
do it over and over again,
needs for a number of
thus making a large page
current security models and
like that a breeze. This
could be easily implemented
article explains how to use
at most dynamic Web sites.
these control structures and
Note that this class does
what each should be used for.
not provide a full security
solution.
Date: Oct, 10 2000 Date: Sep, 07 2000 Date: Jul, 29 2000 Date: Jun, 19 2000 |