php - include (url) : filed to open stream : connection refused
Get the solution ↓↓↓I have set in php.ini theallow_url_include = On
and I have to files on localhost:
a.php:
<?php
$var = "var1";
//echo $var
b.php:
<?php
include "http://127.0.0.1/a.php";
echo $var
which gives error (on execution of b.php): Undefined variable: var in /var/www/html/b.php on line 5
all files works by itself, but theb.php
cannot include the variable from thea.php
, but why, when the url_include is allowed?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: unable to determine current zabbix database version: the table "dbversion" was not found.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.