This page has been translated from English

Articles Comments

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% [ ? ]

Written by

Passionate about home technology, music, free software and community networks.

Filed under: PHP

5 Responses to "URL file-access is disabled in the server configuration"

  1. Claudio says:

    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

  2. Onelio says:

    the solution was to put an iframe:

    scrolling="auto" src="consulta_seguimiento.php?id=" <iframe frameborder="0" width="100%">

  3. Homar Roy says:

    It was the solution to my problem include

  4. ode2logo says:

    thanks : D

  5. Tharshan Venkadesan says:

    thanks

Leave a Reply

*

You may use HTML tags and attributes These: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Search Terms

  • url file-access is disabled in the server configuration (2055)
  • url file-access is disabled in the server configuration in (931)
  • url file-access is disabled (170)
  • url file-access is disabled in the server (154)
  • file-access is disabled in the server configuration (135)
  • php url file-access is disabled in the server configuration (94)
  • url file-access is disabled in the server configuration php (62)
  • warning: include () [function include]: URL file-access is disabled in the server configuration in (39)
  • URL file-access is disabled in the server configuration 1and1 (10)
  • URL file-access is disabled in the server configuration i (9)
  • Warning: copy () [function copy]: URL file-access is disabled in the server configuration in (7)
  • URL file-access is disabled in the server configuratio (7)
  • url file access is disabled (6)
  • URL file-access is disabled in the server configuration in php (6)
  • php URL file-access is disabled in the server configuration in (4)
  • RL file-access is disabled in the server configuration (4)
  • Warning: include () [function include]: URL file-access is disabled in the server configuration (4)
  • URL file-access is disabled in the server configuration wordpress (4)
  • RL file-access is disabled in the server configuration in (4)
  • URL file-access is disabled in the serve (2)

  • Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38989031 bytes) in / home / guatewireless / site / wp-content / plugins / google-bot-bling / google-bot-bling.php on line 114