[help]проблема со скриптом...
_http://l2trial.110mb.com/online.php
Добрый вечер.
Вообщем когда я скрипт ставил на компе , то всё работает как надо , а когда закачал на хостинг 110mb.com то пишет ошибка
[php]
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /www/110mb.com/l/2/t/r/i/a/l/_/l2trial/htdocs/config.php on line 16
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /www/110mb.com/l/2/t/r/i/a/l/_/l2trial/htdocs/config.php on line 16
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /www/110mb.com/l/2/t/r/i/a/l/_/l2trial/htdocs/config.php on line 31
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /www/110mb.com/l/2/t/r/i/a/l/_/l2trial/htdocs/config.php on line 31
[/php]
вот скрипт конфига
[php]
<?
error_reporting(0);
// Настройка базы данных.
global $dbuser;
global $dbpass;
global $dbhost;
global $dbname;
$dbuser = "root"; // Пользователь
$dbpass = "Parol"; // Пароль
$dbhost = "Ololo"; // Адресс БД
$dbname = "l2jdb"; // Имя базы данных
// тестирует подключение к игровому серверу
function Test_connect()
{
$fp = fsockopen("TUT TOZE REALNJE IP", 7777, &$errno, &$errstr, 5);
if($fp == FALSE)
{
return false;
}
else
{
fclose($fp);
return true;
}
}
// тестирует подключение к mysql серверу
function Test_mysql_connect()
{
$fp = fsockopen("ZDES IP", 3306, &$errno, &$errstr, 5);
if($fp == FALSE)
{
return false;
}
else
{
fclose($fp);
return true;
}
}
?>
[/php] p/s ( я изменил данные пароль и т.п чтобы всякие неадекваты не зашли в бд =) )
Вариантов 2:
1) you can set allow_call_time_pass_reference to true in your INI file (имеется ввиду php.ini)
2) в строчке 16 и 31 поубирать таймауты в 5 сек.
WebDeveloper сервера DARKWORLD



