This allows you to send message from your server via headers to the dhtmlconsole developer panel.
This plugin allows you to send a message from your web server (directly by running a server script or making an ajax call) to your browser by using an HTTP Header.
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:
<?php
header('X-DHTML-CONSOLE-MSG: Hello World');
?>
As of version 0.3, you can now do javaScript alerts
<?php
header('X-DHTML-CONSOLE-MSG: alert:Hello World');
?>
As of version 0.3, you can clear the console from server by:
<?php
header('X-DHTML-CONSOLE-MSG: -clear-');
?>
To send multiple messages in PHP:
<?php
function dhtmlconsole($msg='') {
static $pos=0;
$pos++;
header('X-DHTML-CONSOLE-MSG'.$pos.': '.$msg);
}
//implementation
dhtmlconsole("Hello");
dhtmlconsole("World");
?>
You can Follow the below Step By Step procedure to install the DHTMLConsole Chrome Extension to your Chrome Web browser.
It is the DHTMLConsole Chrome extension download link you can download and install Chrome Browser.
Tags: Ajax Call , Send Custom Http Headers , Custom Http Headers , Javascript Alerts , Http Header , Plugin Allows , Server Script , Send Message , Dhtmlconsole Msg , Header Dhtml Console Msg Pos , Php Script , Header Dhtml Console Msg , Dhtmlconsole World , Dhtml Console , Function Dhtmlconsole , Send Multiple Messages , Dhtmlconsole Developer Panel , Header Dhtml Console Msg Clear ,