PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 12-30-2003, 02:04 AM   #1
uruloki
Green Mole
 
Join Date: Sep 2003
Posts: 6
Question 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?
uruloki is offline   Reply With Quote
Old 12-30-2003, 02:50 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 01-01-2004, 10:47 PM   #3
uruloki
Green Mole
 
Join Date: Sep 2003
Posts: 6
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
uruloki is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:07 PM.


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