This allows you to send message from your server via headers to the dhtmlconsole developer panel
DHTMLConsole Extension
The only rule is that you need to send custom HTTP headers from your server with the name of the header starting with X-DHTML-CONSOLE.
To send a message from a PHP script to the browser, this implementation will suffice:
header('X-DHTML-CONSOLE-MSG: Hello World');
?>
As of version 0.3, you can now do javaScript alerts
header('X-DHTML-CONSOLE-MSG: alert:Hello World');
?>
As of version 0.3, you can clear the console from server by:
header('X-DHTML-CONSOLE-MSG: -clear-');
?>
To send multiple messages in PHP:
function dhtmlconsole($msg='') {
static $pos=0;
$pos++;
header('X-DHTML-CONSOLE-MSG'.$pos.': '.$msg);
}
//implementation
dhtmlconsole(\"Hello\");
dhtmlconsole(\"World\");
?>
Source Manifest.json
Similar Extensions
Lavaca Developer Tools 240 0 ★ 10.42MiB
Atma.js DevTool 240 0 ★ 201KiB
console.sparkline 240 1 ★ 4.7KiB
captureCalls 240 1 ★ 9.63KiB
HTML5 Debugger 240 1 ★ 9.01KiB
Github Annotator 240 2 ★ 81.68KiB
PHP shell 240 19 ★ 12.46KiB
PHP Write Run 240 9 ★ 218KiB
github-php-function-jumper 240 2 ★ 11.38MiB
LiveScriptConsole 240 2 ★ 388KiB
DevTools Classes & Atributes panel 240 4 ★ 12.75KiB
Ohana Developer Console 240 2 ★ 174KiB
Developer URL bar 240 2 ★ 41.03KiB
rawkit 240 0 ★ 88.13KiB
GitHub submodule links 240 2 ★ 17.49KiB
Check for .git directory existence 240 0 ★ 49.98KiB
OctoPermalinker 240 1 ★ 373KiB
Console Injector 240 12 ★ 20.4KiB
PHP Error Alert 240 11 ★ 57.31KiB
DOM-JSON Tree Matcher 240 0 ★ 18.58KiB
Scripter debugger extension 240 2 ★ 1.04MiB
DOM to JSON Selector 240 0 ★ 48.55KiB
Developer pages 240 5 ★ 7.09KiB
Not my department 240 1 ★ 1.44MiB
User reviews
Роман (ID: 0000003be1a4e834) Voted 1 ★ - Updated 01/22/2023
Magno Alberto (ID: 0000005b163280f6) Voted 5 ★ - Updated 12/18/2020
Jose Cruz (ID: 0000000c3a8630c7) Voted 5 ★ - Updated 01/10/2018
Anthony ogundipe (ID: 000000d290a4eeb2) Voted 5 ★ - Updated 01/20/2016