php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43153 ALERT ECHO FOR PHP
Submitted: 2007-10-30 22:56 UTC Modified: 2008-01-02 16:43 UTC
Votes:44
Avg. Score:3.1 ± 0.9
Reproduced:10 of 17 (58.8%)
Same Version:8 (80.0%)
Same OS:5 (50.0%)
From: jmartyn at nctimes dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.2.4 OS: winxpsp2
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: jmartyn at nctimes dot com
New email:
PHP Version: OS:

 

 [2007-10-30 22:56 UTC] jmartyn at nctimes dot com
Description:
------------
To aide programmers, and for fasting coding techniques it would be wonderful to have a php alert dialog that automatically and/or manually disappears during parsing.

Reproduce code:
---------------
In the process of coding and for text placement ease, it would be easier for php in the browser to alert any such special echo statements instead of displaying them. It takes on the average of one second to find your echo statement on a full page. I see so many webmasters color coding echo statements. Some going as far as quick code javascript inserts. It would be so easy to include and it would save so much time. Webmasters are always flipping back and forth.

I thought it would be good to have the php.ini file contain the config of the alert box such as:
interval between two windows from closing to opening whether it was closed manually or automatically
time a window is open.
have the option to manually or automatically close alert windows

This would certainly make debugging so much easier because you can set whether it would display the alert code in the parse later on, therefore it would ignore the alerts but leave them for future debugging instead of commenting them out or erasing them. It's pure PHP genius. Who wouldn't want it?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-01 14:18 UTC] magnus@php.net
You can already open alert windows with javascript. Not to mention 
that PHP would have to output javascript to add things to that other 
window which might not work since you could be anywhere in the html 
code at the moment.
 [2008-01-02 16:43 UTC] jmartyn at nctimes dot com
Yes, but javascript alerts can't be controlled if you leave them in the code. A php debugging alert would be easy to turn on and off with a server without removing code or commenting it out. What about an output area for specific php messages? Like firebug, for example.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC