подключение переменных include

  • : Function set_magic_quotes_runtime() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/sites/all/modules/sape/sape.php on line 221.
  • : Function set_magic_quotes_runtime() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/sites/all/modules/sape/sape.php on line 227.
  • : Function set_magic_quotes_runtime() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/sites/all/modules/sape/sape.php on line 221.
  • : Function set_magic_quotes_runtime() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/sites/all/modules/sape/sape.php on line 227.
  • : Function ereg() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/users/r/rezak-bill/domains/t44.biz/includes/file.inc on line 647.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • warning: Illegal string offset 'data' in /home/users/r/rezak-bill/domains/t44.biz/includes/tablesort.inc on line 110.
  • : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/users/r/rezak-bill/domains/t44.biz/includes/unicode.inc on line 311.

иногда надо вывести удаленные переменные из другого файла или
даже с другого сервера.

вот два варианта

<?php
$url="http://адрескфайлу.com/left1.html";
$curl = curl_init ();
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt ($curl, CURLOPT_TIMEOUT, 5);
echo curl_exec ($curl);
curl_close($curl);
?>

второй вариант подключения удаленной переменной
<?php
include "http://адрескфайлу/rr.php";
?>

в самом файле сразу открываем пхп и там уже делаем то, что нам надо

Комментарии

Отправить комментарий

Содержание этого поля является приватным и не предназначено к показу.
  • Адреса страниц и электронной почты автоматически преобразуются в ссылки.
  • Allowed HTML tags: <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <noindex>
  • Строки и параграфы переносятся автоматически.

Подробнее о форматировании