php3-list | 199807
Date: 07/22/98
- Next message: Brian Schaffner: "RE: [PHP3] Setting up problems"
- Previous message: Brian Leyton: "[PHP3] Problem compiling with Openlink support"
- Maybe in reply to: Walter Dougoveto: "[PHP3] #ifdef and #endif"
- Next in thread: Zeev Suraski: "RE: [PHP3] #ifdef and #endif"
- Reply: Zeev Suraski: "RE: [PHP3] #ifdef and #endif"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<?
$DEBUG_MODE = 1;
function debugmsg($str) {
global $DEBUG_MODE;
if ($DEBUG_MODE) {
print("DEBUG: $str<BR>\n");
}
}
$value = somefunc();
debugmsg("\$value = $value");
?>
Of course, there's always comments!
Brian Schaffner, Manager of Internet Services
ACCENT Marketing Services, Inc.
-----Original Message-----
From: Walter Dougoveto [mailto:wdougoveto <email protected>]
Sent: Wednesday, July 22, 1998 8:27 AM
To: php3 <email protected>
Subject: [PHP3] #ifdef and #endif
I was just wondering if there was anything like the #ifdef and #endif in
C
that you could use with PHP for debugging? If not, what would you
suggest?
I have been adding statements for debugging and then taking them out
but
it is not very efficient. It would be good to have a way to turn them
on
or off using one statement.
Thanks,
Walter
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Brian Schaffner: "RE: [PHP3] Setting up problems"
- Previous message: Brian Leyton: "[PHP3] Problem compiling with Openlink support"
- Maybe in reply to: Walter Dougoveto: "[PHP3] #ifdef and #endif"
- Next in thread: Zeev Suraski: "RE: [PHP3] #ifdef and #endif"
- Reply: Zeev Suraski: "RE: [PHP3] #ifdef and #endif"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

