PHP Classes

File: console.example2.php

Recommend this page to a friend!
  Classes of Matthew Knowlton  >  PHP Web Console  >  console.example2.php  >  Download  
File: console.example2.php
Role: Example script
Content type: text/plain
Description: Example of PHPConsole being used for logging by an separate script.
Class: PHP Web Console
Execute PHP commands on a console Web page
Author: By
Last change: Added script explanation text.
Date: 6 years ago
Size: 299 bytes
 

Contents

Class file image Download
<?php
require_once('PHPConsole.class.php');

PHPConsole::log('hello world');

function
test($str){
   
PHPConsole::backtrace();
}

test("traceTest");
?>

This is a test with console logging form a separate script.
The logs should show up on any running console with the same session_id

For more information send a message to info at phpclasses dot org.