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?
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?