Results 1 to 7 of 7

Thread: allow_url_fopen?

  1. #1
    Thread Starter
    arsenalke's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    allow_url_fopen?

    Code:
    Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /####/###/.../includes/theme-functions.php on line 1260
    
    Warning: file_get_contents(http://maps.google.com/maps/geo?q=usa&output=json&language=en&sensor=false&hl=en&region=US) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /####/.../includes/theme-functions.php on line 1260
    While I am getting this warning, and the solution is essentially turning on allow_url_fopen, I have this reservation:
    If enabled, allow_url_fopen allows PHP's file functions to retrieve data from remote locations such as an FTP server or web site, and could lead to code injection vulnerabilities. Typically, these code injection vulnerabilities occur from improper input filtering when passing user-provided data to PHP functions. Disabling this function will help considerably in stopping your site(s) from being compromised, as well as help thwart the unauthorized use of our servers for abusive or malicious purposes.
    So, my question is, is it SAFE to turn it on? And is there another solution around this since this[turning it on] may not be a very reliable solution?

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    arsenalke's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    arsenalke's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    Thread Starter
    arsenalke's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best hosting company with allow_url_fopen=on
    By spartac in forum Report JobRoller Bugs
    Replies: 6
    Last Post: January 18th, 2012, 07:17 AM