Hello,
I’m working on a Flywheel site and wondering if file_get_contents is disabled by default because it won’t load anything. I’m guessing warnings/errors are also disabled, so I get zero feedback from PHP about why it’s failing.
Do I need to gain admin access to the server and configure PHP to enable file_get_contents? My task is to load an HTML file and include it with a Wordpress shortcode. The shortcode works for plain strings, but fails silently when I try to load a file from the same directory as the Wordpress theme.
Edit: I should add that this Wordpress plugin does the same thing as my custom solution, and it also fails to include the content silently…hence my assumption that the PHP function needs to be enabled. https://wordpress.org/plugins/wp-file-get-contents/
Thank you