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

simon

From 2.5.6 there is:

  • a new variable $UrlGetFunction allowing configuration of a custom function to retrieve remote content. Currently the features RecipeCheck and Blocklist use this function, by default it is file_get_contents()
  • and an extension that provides "cURL" for when allow_url_fopen is disabled
  • UrlGet   A PmWiki extension to replace PmWiki's use of "file_get_contents" with "cURL"

simon