OverviewThe PHP parameter
allow_url_fopenhas been disabled in PHP environment for the Grid.
allow_url_fopenallows 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 in stopping your site from being hacked, as well as help to avoid the unauthorized use of our servers for abusive or malicious purposes.
- Use a relative path to the file stored locally.
- Using the PHP environment variable
$_SERVER['DOCUMENT_ROOT'], which returns the absolute path to the web root directory.
- cURL is another method that could be used. (This method is
beyond the scope of this article. For more information, please see:
allow_url_fopen = 1
After making this change, my sites no longer work and I get the error “Fatal error: Allowed memory size of 8388608 bytes exhausted..”, how do I fix this?
memory_limit = 100M