[TYPO3-core] Use CURL for more protocols (bug #1364)

Ingmar Schlecht ingmar at typo3.org
Fri Feb 22 15:00:51 CET 2008


Marking this RFC as dropped. It is replaced by

	"[TYPO3-core] RFC: #1364, #5985, #7624: improved version of
	 getUrl (cUrl, CURLOPT_FOLLOWLOCATION, error reporting)"

cheers
Ingmar

Martin Kutschker schrieb:
> Hi!
> 
> RC or not, can we get CURL support for ftp and ftps into TYPO3?
> 
> BTW, neither the include headers nor nor request headers option of 
> t3lib_div::getURL check the protocol correctly. Both options may only be 
> used with http(s). Any objections to adding this check?
> 
> Masi
> 
> PS:
> 
> How about a check in the installer and/or EM to test for the 
> availability of getURL and http. This sample code checks and returns 
> some advice (meant for EM when getting the extension list failed).
> 
> if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse'] == '1' &&
>    !extension_loaded('curl'))    {
>     $curlExt = TYPO3_OS=='win' ? '.dll' : 'so';
>     return 'TYPO3 is configured to use CURL, but PHP extension is not 
> loaded (in php.ini set "extension = \'curl.' . $curlExt . '\')';
> } elseif (!ini_get ('allow_url_fopen'))    {
>     return 'PHP may not open URLs (in php.ini set "allow_url_fopen = On")';
> } else {
>     if (extension_loaded('curl'))    {
>         return 'TYPO3 is not configured to use CURL (see TYPO3 
> installer).';
>     } else {
>         return 'PHP may not open URLs (in php.ini set "allow_url_fopen = 
> On")';
>     }
> }


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list