|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-09 10:09 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 09:00:01 2025 UTC |
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!