“url file-access is disabled” Error message

———-ENGLISH———-
This error shows if you use some code with “require” to get information of one of your subfolders, this is because the server security disabled that function, but is really easy to fix, click “more” to get information about how to solve it

———-ESPAÑOL———-
Este error se muestra usas codigo con “require” para obtener informacion incluida en tus subfolders, ya que la seguridad del servidor apaga esta funcion, da click en “more” para saber como solucionarlo

———-ENGLISH———-
Ok. so you are installing a new script and when you try to run it, it shows a server error like “url file-access is disabled“, to fix it, you need to check on the line the error shows in your code, and you will see a line like:

require (“http://mydomain.com/mypage.php”);

To make it work, only change that code for something like this one.

require_once($_SERVER[‘DOCUMENT_ROOT’].’/mypage.php’);

———-ESPAÑOL———-
Bien. entonces estas instalando un script y cuado lo intentas correr, muestra un error que dice algo asi como  “url file-access is disabled“, para arreglarlo, necesitas revisar en la linea de tu codigo que muestra el error, y vas a ver ahi una limea parecida a esta:

require (“http://mydomain.com/mypage.php”);

Para hacerla funcionar, solo es necesario cambiar ese codigo a algo similar a este otro.

require_once($_SERVER[‘DOCUMENT_ROOT’].’/mypage.php’);

Leave a Reply