Guatewireless.org » PHP » URL file-access is disabled in the server configuration
URL file-access is disabled in the server configuration
By developing a simple application in PHP I came across the problem that the consultation should have access to some functions within a php file on a remote server.
When trying to use the include () statement in my code to include web via a php file with the functions I need. This was not possible since I deployed this error:
Url File-access Is Disabled In The Server Configuration
How to enable URL file-access in php
Inside the php.ini configuration file, you will find a line like this, change the default allow_url_include Off to On.
| file: / etc/php5/apache2/php.ini |
; Whether to allow include / require to open URLs (like http:// or ftp://) as files. allow_url_include = On |
We just have to edit the php.ini file (the path varies depending on the distro of Linux), and restart the apache server.
Toshi: / etc # vim php5/apache2/php.ini Toshi: / etc # / etc/init.d/apache2 restart
Popularity: 4% [ ? ]
Filed under: PHP

If you have no access to php.ini that does not help much.
Acer is what you can add these lines before executing the remote query
if (ini_get ('allow_url_fopen') == true) {
$ Xml = load_fopen ($ query);
} Else if (function_exists ('curl_init')) {
$ Xml = load_curl ($ query);
}
regards
the solution was to put an iframe:
scrolling="auto" src="consulta_seguimiento.php?id=" <iframe frameborder="0" width="100%">
It was the solution to my problem include
thanks
thanks