Skip to main content

allow_url_fopen set to Off ?

Comments

3 comments

  • 24x7ss
    It good idea to keep allow_url_fopen disabled. As you are hosting wordpress/Joomla sites then you can use curl function as an alternative of allow_url_fopen.
    0
  • cPanelMichael
    Hello :) I have moved this thread to our "Security" forum. You can find several discussions of this option in previous threads if you search for "allow_url_fopen". Thank you.
    0
  • abdelhost77
    You may use Curl instead of allow_url_fopen which better stays to "OFF" function file_get_contents_curld($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch); return $data; }
    0

Please sign in to leave a comment.