PHP Classes

File: debug.html.php

Recommend this page to a friend!
  Classes of Aleksey Nemiro   PHP ASP.NET WebForms   debug.html.php   Download  
File: debug.html.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP ASP.NET WebForms
Emulation of ASP.NET WebForms engine in PHP
Author: By
Last change:
Date: 7 years ago
Size: 1,224 bytes


Class file image Download
<html xmlns:php="">

        <php:Content ID="MainContent">
            <pre><code class="php">&lt;?php
  \Nemiro\Console::Log('Message without parameters.');
  \Nemiro\Console::Log('Message with %s.', 'parameters');

  \Nemiro\Console::Info('Information message without parameters.');
  \Nemiro\Console::Info('Information message: %s, %s, %s', '123', 'abc', 'xyz');

  \Nemiro\Console::Error('Error message!');
  \Nemiro\Console::Error('Message: %s', 'Error message!');

  \Nemiro\Console::Warning('It works only in debug mode!');
  \Nemiro\Console::Warning('It works only in debug mode: define(\'%s\', %s);', 'DEBUG_MODE', 'true');

    return false; # false for error
  }, 'Error message');

  \Nemiro\Console::Assert(2 * 2 == 4, '2 * 2 != 4');

  \Nemiro\Console::Time('Test timer');
  sleep(1); # pause 1 sec. only for this test
  \Nemiro\Console::TimeEnd('Test timer');
            <p><a href="/Content/images/console.png" target="_blank"><img src="/Content/images/console.png" alt="console" title="" class="img-thumbnail" /></a></p>