Skip to main content

file_get_contents is not working

Comments

8 comments

  • cPanelLauren
    Hi @maxmizban Do you have any specific errors that you're receiving in the PHP error log when attempting to use file_get_contents and file_put_contents? The PHP documentation on this may be helpful as well PHP: file_get_contents - Manual Thanks!
    0
  • Private Manager
    I have same problem, file_get_contents and curl not working without error and my allow_url_fopen enabled. This happens after i updated my cpanel. How can i fix it ?
    0
  • cPanelLauren
    HI @Private Manager Can you tell me what version of curl you're running? I'm actually curious if this might be related to
    0
  • F44DU
    Hello @cPanelLauren
    HI @Private Manager Can you tell me what version of curl you're running? I'm actually curious if this might be related to
    0
  • cPanelLauren
    Where are you checking to see if file_get_contents is enabled, cPanel or the specific PHP version within WHM's MultiPHP Manager?
    0
  • F44DU
    Where are you checking to see if file_get_contents is enabled, cPanel or the specific PHP version within WHM's MultiPHP Manager?

    WHM's Multi PHP INI Editor.. There I can see no php extension is disabled.. In addition to it, just wanna mention that it's fresh installation (maybe that's why there is nothing disabled)
    0
  • cPanelLauren
    Hello, I'm sorry, I should have been more clear. This is controlled by allow_url_fopen in WHM>>Software>>MultiPHP INI Manager. Select the PHP version you want to modify and toggle that to on, this is disabled by default.
    0
  • F44DU
    Greatness begins from here!! Thanks alot man @cPanelLauren !! I hope this will help other cPanel users as well :):):)
    0

Please sign in to leave a comment.