[Typo3-dev] t3lib_div::getURL() and file_get_contents()

Martin T. Kutschker Martin-no5pam-Kutschker at blackbox.n0spam.net
Fri Jun 25 01:11:20 CEST 2004


Hi!

Anyone has a profiler ready? I was wondering if these changes to 
t3lib_div::getURL($url) make any difference:

if ( [CURL] )	{
	[...]
} elseif(function_exists('file_get_contents')	{
	return file_get_contents($url)	
} elseif($fd = fopen($url,'rb'))    {
	[...]
}

In theory it should have a perfomance benefit.

Masi





More information about the TYPO3-dev mailing list