file_get_contents() function in PHP is not working

InMotionFans 4 years ago in Website / Website Troubleshooting 0
In my PHP code, I used file_get_contents() function for a long time and it used to work without any problem. But it stopped working recently. I'm wondering why this function has stopped working on my hosting recently?
Hello, Thank you for contacting us about an issue with the file_get_contents PHP function. Ensure you have enabled PHP error logging/reporting. Check you are using PHP 4 >= 4.3.0, PHP 5, PHP 7. Also, make sure you syntax is correct, and none of the parameters have changed. file_get_contents(path,include_path,context,start,max_length (from w3schools) Can you provide a link to the scripts for testing? If you have any further questions, feel free to post them below. Thank you, John-Paul