[TYPO3-dev] @file_get_contents($url) returns nothing when running script from cronjob

Dmitry Dulepov dmitry at typo3.org
Wed Oct 1 13:43:39 CEST 2008


Hi!

Brian Bendtsen wrote:
> I have found out that when running script from cronjob the function 
> @file_get_contents($url) returns nothing.

Do not use file_get_contents(). Use t3lib_div::getURL($url).

-- 
Dmitry Dulepov
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/duplicate_content_with_realurl/




More information about the TYPO3-dev mailing list