PITS /
01539: fopen URL usage
Summary: fopen URL usage
Created: 2026-01-14 01:02
Status: ToDo
Category: Feature
From: simon
Assigned:
Priority: 1
Version: latest
OS:
Description: fopen use should be minimised for URL like objects. It is also often not enabled by web hosts. allow-url-fopen. cURL is a better fit and more widely available.
I suggest replacement by cURL in places such as
- RecipeCheck
- BlockList
From 2.5.6 there is:
- a new variable
$UrlGetFunctionallowing configuration of a custom function to retrieve remote content. Currently the features RecipeCheck and Blocklist use this function, by default it isfile_get_contents() - and an extension that provides "cURL" for when
allow_url_fopenis disabled
- UrlGet A PmWiki extension to replace PmWiki's use of "
file_get_contents" with "cURL"