PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   about debug_functions.php (http://www.phpdig.net/forum/showthread.php?t=343)

uruloki 12-30-2003 02:04 AM

about debug_functions.php
 
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 02: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:
PHP Code:

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

Code:

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

and the following code would produce the following table:
PHP Code:

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

Code:

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


uruloki 01-01-2004 10:47 PM

Thanks!
 
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


All times are GMT -8. The time now is 08:44 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.