Function package_put_contents
Writes data to a file, almost exactly like the file_put_contents() function. uses FTP to create/chmod the file when necessary and available. uses text mode for text mode file extensions. returns the number of bytes written.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Package.php
string |
$filename |
The name of the file |
string |
$data |
The data to write to the file |
boolean |
$testing = false |
Whether we're just testing things |
integer
|
The length of the data written (in bytes) |