jameser
Создатель
- Регистрация
- 17 Янв 2009
- Сообщения
- 45
- Реакции
- 6
- Автор темы
- #1
Hello all, sorry but i don`t know real good russian language and i`ll post in english if I do something wrong i ask a moderator to tell me.
I am new here and for that i decided to share with you how to make eweather compatible with joomla 1.5:
Open file:
administrator/components/com_eweather/config.eweather.php and change it with this attached file
Then open:
libraries/domit/xml_domit_parser.php and change:
return file_get_contents($filename); to:
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "$filename");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt ($ch, CURLOPT_USERAGENT, $_ENV['HTTP_USER_AGENT']);
$file = curl_exec($ch);
return $file;
That`s all thanks for your atention
I am new here and for that i decided to share with you how to make eweather compatible with joomla 1.5:
Open file:
administrator/components/com_eweather/config.eweather.php and change it with this attached file
Скрытое содержимое доступно для зарегистрированных пользователей!
Then open:
libraries/domit/xml_domit_parser.php and change:
return file_get_contents($filename); to:
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "$filename");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt ($ch, CURLOPT_USERAGENT, $_ENV['HTTP_USER_AGENT']);
$file = curl_exec($ch);
return $file;
That`s all thanks for your atention