PDA

View Full Version : about debug_functions.php


uruloki
12-30-2003, 03:04 AM
Hi, i have a easy question, what the objective of the function contained in the debug_functions.php? The function isn't used in the code.
What about comment the line with the include? Is necesary?

Charter
12-30-2003, 03:50 AM
Hi. The include of the debug_functions.php file can be commented out. The debug_functions.php file is for displaying information. For example, the following code would produce the following table:

$test = array("1A","2B","3C");
$test = phpdigDspTable($test);
echo $test;


3 rows & 2 columns
index value
0 1A
1 2B
2 3C

and the following code would produce the following table:

$test = array (
"one" => array("a" => "1A", "b" => "2B", "c" => "3C"),
"two" => array(1, 2, 3),
"three" => array("bird", "cat", "dog")
);
$test = phpdigDspTable($test);
echo $test;


3 rows & 3 columns
a b c
1A 2B 3C
1 2 3
bird cat dog

uruloki
01-01-2004, 11:47 PM
Thanks! The reason of this question is that the include to a file that don't exist causes an advise in the event viewer of our web server. We only have the necesary files to give answers to the querys in the web.
BYE :D