Errata


Print Print Icon

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By Corrected
Printed Page 3
"php.exe" was deleted from the ScriptAlias line so it now reads

ScriptAlias /php3/ "/path-to-php-dir/"

Anonymous  Jul 2001
Printed Page 3
3rd paragraph, last sentence

"an HUB" was changed to "a HUP".

Anonymous  Jul 2001
Printed Page 11
Before the "All arrays in PHP..." paragraph, add the following

Values can be assigned quickly to an array with the
array() function. Each argument to the funtion becomes
an array element. If an index is not specified using
the => syntax, PHP automatically assigns the indices
sequentially starting from 0:

$arr = array('Hello', 'World', 1=>'Jan', 2=>'Feb');

Anonymous 
Printed Page 21
2nd block of code

The code used to read:

function hitcount()

It now reads:

function hitcount() {

Also, the following lines:

print "This is the first time this page";
print " has been accessed";

were changed to:

print "This is the first time this";
print " function has been accessed";

Anonymous  Jul 2001
Printed Page 22
code at top of page

The following lines:

print "This page has been accessed $count";
print " times";

were changed to:

print "This function has been accessed";
print " $count times";

Anonymous  Jul 2001
Printed Page 23
2nd and 3rd paragraphs

"$HTTP_GET_DATA" was changed to "$HTTP_GET_VARS" (occurs twice)
"$HTTP_POST_DATA" was changed to "$HTTP_POST_VARS" (once)
"$HTTP_COOKIE_DATA" was changed to "$HTTP_COOKIE_VARS" (once)

Anonymous  Jul 2001
Printed Page 25
code;

show_form($first,$last,$interests);

was changed to:

show_form($first,$last,$interest);

Anonymous  Jul 2001
Printed Page 31
The following entry should was inserted after ksort

void list(...)
Assign variables as if they were an array

Also, in the entries for max and min:

"an array or a series of arguments"

was changed to:

"an array or set of arguments"

Anonymous  Jul 2001
Printed Page 43
under "MySQL Functions

The description of mysql_change_user was changed to:

Change the logged-in user on the current connection
(requires MySQL version 3.23.2 or higher)

Anonymous  Jul 2001
Printed Page 56
Both instances of "GMT/CUT" on the page were changed to "GMT/UTC."

Anonymous  Jul 2001
Printed Page 100
Near bottom of page; An error was made while reprinting. The text should

read:

int eregi(string pattern, string
string [, array registers]
Case-insensitive POSIX-style regular expression match

string eregi_replace(string pattern, string
replacement, string string)
Case insensitive POSIX-style replace regular expression

Anonymous 
Printed Page 100
The term for ereg_replace was changed to

string ereg_replace(string pattern, string replacement, string string)

and the term for eregi_replace was changed to:

string eregi_replace(string pattern, string replacement, string string)

Anonymous  Jul 2001
Printed Page 101
middle

The entry for "implode" has the arguments reversed. Instead of:

string implode(array src, string glue)

It should read:

string implode(string glue, array src)

Anonymous 
Printed Page 103
description of strchr function

The description used to read:

Find the last occurrence of a character in a string

It now reads:

Find the first occurrence of a character in a string

Anonymous  Jul 2001
Printed Page 106
top half

The functions

bool is_real

and

bool is_string

are listed twice.

The second occurrences of "bool is_real" and "bool is_string" should be cut.

Anonymous