Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
// PHP 4.0.0 : __FILE__
3
// PHP 4.0.6 : DIRECTORY_SEPARATOR
4
// PHP 4.0.7 : version compare
5
// PHP 4.3.0 : ob_get_clean
6
// PHP 4.3.0 : debug_backtrace
7
// PHP 4.3.10 and 5.0.2 : PHP_EOL
8
// PHP 5.0.0 : simplexml_load_file
9
 
10
if (!defined('DIRECTORY_SEPARATOR')) {
11
    define('DIRECTORY_SEPARATOR',
12
        strtoupper(substr(PHP_OS, 0, 3) == 'WIN') ? '\\' : '/'
13
    );
14
}
15
 
16
if (function_exists('debug_backtrace')) {
17
    $backtrace = debug_backtrace();
18
} else {
19
    $backtrace = false;
20
}
21
 
22
if (function_exists('simplexml_load_file')) {
23
    $xml = simplexml_load_file('C:\php\pear\PHP_CompatInfo\scripts\version.xml');
24
}
25
 
26
if (version_compare(phpversion(), '5.0.0', '<')) {
27
    include_once 'PHP/Compat.php';
28
    PHP_Compat::loadFunction('ob_get_clean');
29
    PHP_Compat::loadConstant('PHP_EOL');
30
}
31
 
32
echo "Hello World" . PHP_EOL;
33
 
34
$ds  = DIRECTORY_SEPARATOR;
35
$fn  = dirname(__FILE__) . $ds . basename(__FILE__);
36
echo "You have run file : $fn at " . date(DATE_W3C) . PHP_EOL;
37
 
38
?>