But, sir, the file_get_contents () is often disabled in most Production Servers. Does it work for you in your Production Server? Is there any other way of doing this which should have universal acceptance?
You're correct; file_get_contents() is often disabled on many production servers due to security concerns when fetching remote files. But there is no problem to fetch local files. Ensure the directive 'allow_url_fopen' in the php.ini file, is set to 'On'. allow_url_fopen = On If you want to fetch remote files you can use 'cURL' instead.
Hi everyone.
I hope you like the video.
If you have any question feel free to ask,
or you can just say hi. 😉
Thanks for watching guys.
But, sir, the file_get_contents () is often disabled in most Production Servers.
Does it work for you in your Production Server?
Is there any other way of doing this which should have universal acceptance?
You're correct;
file_get_contents() is often disabled on many production
servers due to security concerns when fetching remote files.
But there is no problem to fetch local files.
Ensure the directive 'allow_url_fopen' in the php.ini file,
is set to 'On'.
allow_url_fopen = On
If you want to fetch remote files you can use 'cURL' instead.
@DigitalFox-tutorials
Thank you sir for everything.