Remote include of PHP files

Status
Not open for further replies.

weregus24

New Member
Messages
6
Reaction score
0
Points
0
Hi all,

I have a function file in PHP to use in different places, so I need to have it only in one folder and include it remotely. The problem is that the "include_once" function doesn't work for urls, so when I write something like this I have an error:

include_once 'http://www.mysite.com/myfile.php';

I have found in Internet that the solution is enabling the allow_url_include in php.ini

Is there any way of doing it in my code, or should be done by the hosting service?
 

creativosred75

New Member
Messages
28
Reaction score
0
Points
0
Estás en el foro de SOPORTE en castellano, y como tal, deberás formular tu pregunta en dicho idioma. Para tickets en inglés ya dispones de otro foro.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
The feature is disabled on a per server basis and will not be changed. Including files from remote sources is a security issue.
 

weregus24

New Member
Messages
6
Reaction score
0
Points
0
Perdón por lo del idioma and thanks a lot for your answer.

Siento haber tardado en responder pero no he recibido notificaciones en el email de las respuestas que habéis dado.
 
Status
Not open for further replies.
Top