Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] #ifdef and #endif From: Walter Dougoveto (wdougoveto <email protected>)
Date: 07/22/98

At 09:16 AM 7/22/98 , you wrote:
>On Wed, 22 Jul 1998, Walter Dougoveto wrote:
># Yes that is what I was looking for, but I was hoping there was something I
># could use which would be completely ignored if it was not defined. That
># way when it is turned off it would not slow down the code.
>
>Just a small adjustment:
>
><?
>DEBUG=1; // 1=debug, 0=nodebug
>
>if (!$DEBUG) {
> <some statements>
>}
>?>

Is there a way to have <some statements> return the line number within the
file (such as the __LINE__ preprocessor directive in C)?
An answer to one question leads to another. :)

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