xPDOCacheManager.writeFile
xPDOCacheManager::writeFile
Writes a file to the filesystem.
Syntax
API Docs: http://api.modxcms.com/xpdo/cache/xPDOCacheManager.html#writeFile
boolean writeFile (string $filename, string $content, [string $mode = 'wb'], [array $options = array()])
Example
Write a file to the FS.
$str = 'The contents of the file.'; $xpdo->cacheManager->writeFile('/path/to/the/file.txt',$str);
See Also
- xPDOCacheManager.copyFile
- xPDOCacheManager.copyTree
- xPDOCacheManager.delete
- xPDOCacheManager.deleteTree
- xPDOCacheManager.endsWith
- xPDOCacheManager.escapeSingleQuotes
- xPDOCacheManager.get
- xPDOCacheManager.getCachePath
- xPDOCacheManager.getCacheProvider
- xPDOCacheManager.matches
- xPDOCacheManager.replace
- xPDOCacheManager.writeFile
- xPDOCacheManager.set
- xPDOCacheManager.writeTree
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).