Тест ошибок
Warning: Cannot modify header information - headers already sent by (output started at C:\OpenServer\domains\mobil\index.php:27) in C:\OpenServer\domains\mobil\index.php on line 28
Warning: include_once(AboutGuest.php) [function.include-once]: failed to open stream: No such file or directory in C:\OpenServer\domains\mobil\index.php on line 29
Warning: include_once() [function.include]: Failed opening 'AboutGuest.php' for inclusion (include_path='.;c:/openserver/modules/php/PHP-5.3;c:/openserver/modules/php/PHP-5.3/PEAR/pear') in C:\OpenServer\domains\mobil\index.php on line 29
Fatal error: Class 'AboutGuest' not found in C:\OpenServer\domains\mobil\index.php on line 30
Сам код
<?php
header('Content-Type: text/html; charset=utf-8');
include_once('AboutGuest.php');
$AboutGuest = new AboutGuest;
echo "Исходные данные: $AboutGuest->agent <br /><br />
IP: $AboutGuest->ip
Браузер: $AboutGuest->browser версия: $AboutGuest->version<br />
Операционная система: $AboutGuest->operating_system версия: $AboutGuest->os_version<br /><br />
Являюсь роботом? ". $AboutGuest->is_robot ."<br />
Робот принадлежит: $AboutGuest->robot<br /><br />
Зашел с мобильного? ". $AboutGuest->is_mobile ."<br />
Телефон: $AboutGuest->mobile<br /><br />";
?>