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.
Parameters Summary
string $filename
string $data
bool $testing = false