[Typo3-dev] Copying a file in an extension

Christopher bedlamhotel at gmail.com
Wed Sep 14 18:14:13 CEST 2005


Hi,

On 14/09/05, media.res | alex widschwendter <a.widschwendter at mediares.at> wrote:
> hi markus,
> 
> > Just another question came around when programming on some extensions:
> > I used the "createDirs" value of the $EM_CONF array in ext_emconf.php to
> > create a new folder in /uploads/media. What I know want to do is also to
> > copy some file (namely some .htaccess) to this folder but I haven't found
> > any solution to do this. Does anybody know how I could do this?
> 
> have a look in the ext_tables.php file from the fdfx_basicskin extsion.
> 

Also, have a look at the API document; there're a few functions
dedicated to creating and uploading files and directories in the
following two sections:

http://typo3.org/documentation/document-library/doc_core_api/High_priority_functi/
http://typo3.org/documentation/document-library/doc_core_api/Functions_typically/

Functions such as t3lib_div::getURL and t3lib_div::writeFile may be
useful for what you're describing...


-Christopher




More information about the TYPO3-dev mailing list