|
add Test Extensions page
|
Url Get
example
(:urlget:)
{$UrlGetMsg}
| UrlGet
The internal PmWiki "$UrlGetFunction" is set to "UrlGet\UrlGet"
UrlGet is a function that uses "cURl"(approve sites) to retrieve the contents of a URL. Returns the URL contents as a string, or FALSE, the same as "file_get_contents". Returns error messages in $FmtV['$UrlGetMsg'].
|
example
(:urlget test:)
{$UrlGetMsg}
| UrlGet
The internal PmWiki "$UrlGetFunction" is set to "UrlGet\UrlGet"
UrlGet is a function that uses "cURl"(approve sites) to retrieve the contents of a URL. Returns the URL contents as a string, or FALSE, the same as "file_get_contents". Returns error messages in $FmtV['$UrlGetMsg'].
Test UrlGet with https://www.pmwiki.org/pmwiki/recipelist 1,052 lines and 56,017 characters returned. First two lines: -> # updated: 2026-04-06T10:48:01Z -> PmWiki:Upgrades pmwiki-2.5.9
|
Messages
urlget.php
<hr>D:\Home\KiwiWiki\pmwiki\extensions\UrlGet\UrlGet.php: '2026-04-07'
conf[]: akey: debugKWTLQuestionVars, debugPmWikiInfo, stylesPmWikiInfo, debugUrlGet, =dir, =url, _xversions
Array
(
[debugKWTLQuestionVars] =>
[debugPmWikiInfo] =>
[stylesPmWikiInfo] =>
[debugUrlGet] => true
[=dir] => D:\Home\KiwiWiki\pmwiki\extensions/UrlGet
[=url] => https://kiwiwiki.nz/pmwiki/extensions/UrlGet
[_xversions] => 2025-11-16 2026-04-07^
)
UrlGet markup: '/\(:urlget(.*)?:\)/i'
urlget\urlget_directive()
<hr>: 'UrlGet'
m[]: akey: 0, 1
Array
(
[0] => (:urlget:)
[1] =>
)
args[]: akey:
Array
(
)
<hr>: 'UrlGet'
m[]: akey: 0, 1
Array
(
[0] => (:urlget test:)
[1] => test
)
args[]: akey: #,
Array
(
[#] => Array
(
[0] =>
[1] => test
)
[] => Array
(
[0] => test
)
)
|