Date: 08/28/00
- Next message: Zeev Suraski: "[PHP-DOC] Re: [PHP-DEV] Re: "waldschrotts guide to nifty references" - manual page draft, version 0.9b"
- Previous message: Stig S. Bakken: "Re: [PHP-DOC] Re: [PHP-DEV] "waldschrotts guide to nifty references"- manualpage draft, version 0.9b"
- Next in thread: Torben Wilson: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
jmcastagnetto Mon Aug 28 01:23:35 2000 EDT
Modified files:
/phpdoc/en/functions misc.xml
Log:
fixed minor typo
Index: phpdoc/en/functions/misc.xml
diff -u phpdoc/en/functions/misc.xml:1.25 phpdoc/en/functions/misc.xml:1.26
--- phpdoc/en/functions/misc.xml:1.25 Sat Aug 26 18:44:41 2000
+++ phpdoc/en/functions/misc.xml Mon Aug 28 01:23:34 2000
@@ -790,10 +790,10 @@
echo "<BR><B>ERROR: Script Name needed</B><BR>";
} else {
if (ereg("(\.php|\.inc)$",$script)) {
- echo "<H1>Source of: $PATH_INFO</H1>\n<HR>\n";
- highlight_file($script);
+ echo "<H1>Source of: $PATH_INFO</H1>\n<HR>\n";
+ highlight_file($script);
} else {
- echo "<H1>ERROR: Only PHP or include script names are allowed</H1>";
+ echo "<H1>ERROR: Only PHP or include script names are allowed</H1>";
}
}
echo "<HR>Processed: ".date("Y/M/d H:i:s",time());
@@ -1193,11 +1193,11 @@
$conn = odbc_connect ("webdb", "php", "chicken");
$stmt = odbc_prepare ($conn,
- "UPDATE sessions SET data = ? WHERE id = ?");
+ "UPDATE sessions SET data = ? WHERE id = ?");
$sqldata = array (serialize($session_data), $PHP_AUTH_USER);
if (!odbc_execute ($stmt, &$sqldata)) {
$stmt = odbc_prepare($conn,
- "INSERT INTO sessions (id, data) VALUES(?, ?)");
+ "INSERT INTO sessions (id, data) VALUES(?, ?)");
if (!odbc_execute($stmt, &$sqldata)) {
/* Something went wrong. Bitch, whine and moan. */
}
@@ -1210,7 +1210,7 @@
<refentry id="function.set-error-handler">
<refnamediv>
- <refname>set_error_handlers</refname>
+ <refname>set_error_handler</refname>
<refpurpose>
Sets a user-defined error handler function.
</refpurpose>
@@ -1257,21 +1257,21 @@
function myErrorHandler ($errno, $errstr) {
switch ($errno) {
case FATAL:
- echo "<b>FATAL</b> [$errno] $errstr<br>\n";
- echo " Fatal error in line ".__LINE__." of file ".__FILE__;
- echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n";
- echo "Aborting...<br>\n";
- exit -1;
- break;
+ echo "<b>FATAL</b> [$errno] $errstr<br>\n";
+ echo " Fatal error in line ".__LINE__." of file ".__FILE__;
+ echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n";
+ echo "Aborting...<br>\n";
+ exit -1;
+ break;
case ERROR:
- echo "<b>ERROR</b> [$errno] $errstr<br>\n";
- break;
+ echo "<b>ERROR</b> [$errno] $errstr<br>\n";
+ break;
case WARNING:
- echo "<b>WARNING</b> [$errno] $errstr<br>\n";
- break;
+ echo "<b>WARNING</b> [$errno] $errstr<br>\n";
+ break;
default:
- echo "Unkown error type: [$errno] $errstr<br>\n";
- break;
+ echo "Unkown error type: [$errno] $errstr<br>\n";
+ break;
}
}
@@ -1279,15 +1279,15 @@
function scale_by_log ($vect, $scale) {
if ( !is_numeric($scale) || $scale <= 0 )
trigger_error("log(x) for x <= 0 is undefined, you used: scale = $scale",
- FATAL);
+ FATAL);
if (!is_array($vect)) {
trigger_error("Incorrect input vector, array of values expected", ERROR);
return null;
}
for ($i=0; $i<count($vect); $i++) {
if (!is_numeric($vect[$i]))
- trigger_error("Value at position $i is not a number, using 0 (zero)",
- WARNING);
+ trigger_error("Value at position $i is not a number, using 0 (zero)",
+ WARNING);
$temp[$i] = log($scale) * $vect[$i];
}
return $temp;
- Next message: Zeev Suraski: "[PHP-DOC] Re: [PHP-DEV] Re: "waldschrotts guide to nifty references" - manual page draft, version 0.9b"
- Previous message: Stig S. Bakken: "Re: [PHP-DOC] Re: [PHP-DEV] "waldschrotts guide to nifty references"- manualpage draft, version 0.9b"
- Next in thread: Torben Wilson: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

