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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 10:00:01 2025 UTC