[TYPO3-english] How to write something to file with BE module

Dmitry Dulepov dmitry at typo3.org
Mon Aug 2 14:14:26 CEST 2010


Hi!

Dawid Pacholczyk wrote:
> cause if run this code

Run where? In the server-side code or from the command line?

> $fp = fopen('file.txt', 'w');
> fwrite($fp, $content);
> fclose($fp):
> 
> the $content is written to the file, but when I`l run this code (and this
> function you gave me is nothing more than that code) nothing happens

So if the code above works, why don't you use it?

-- 
Dmitry Dulepov
TYPO3 core&security team member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-english mailing list