#31035 [Opn->WFx]: print function

From: Date: Thu, 09 Dec 2004 09:09:32 +0000
Subject: #31035 [Opn->WFx]: print function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69964@lists.php.net to get a copy of this message
ID: 31035 Updated by: derick@php.net Reported By: freeseacher at pisem dot net -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: freebsd 4.10 PHP Version: 4.3.9 New Comment: Define our own function which checks for a parameter.... this can be very easily done in user land. Previous Comments: ------------------------------------------------------------------------ [2004-12-09 10:04:34] freeseacher at pisem dot net Description: ------------ sorry foк my english I want to make some debug output from my script and make it optional. some thing like print(DEBUG1,"test"); So i need to print string only if debug level is 1 and so on. Reproduce code: --------------- print ("Connecting mysql..."); $link = mysql_connect($mysql_ht, $mysql_name, $mysql_pass) or die("\t\t FAILED!\n"); print ("\t\tOK!\n"); Expected result: ---------------- Connecting mysql... OK! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31035&edit=1

« previous php.bugs (#69964) next »