php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31035 print function
Submitted: 2004-12-09 10:04 UTC Modified: 2004-12-09 10:09 UTC
From: freeseacher at pisem dot net Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.9 OS: freebsd 4.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: freeseacher at pisem dot net
New email:
PHP Version: OS:

 

 [2004-12-09 10:04 UTC] 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!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-09 10:09 UTC] derick@php.net
Define our own function which checks for a parameter.... this can be very easily done in user land.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 01 10:01:29 2024 UTC