Source for file file_put_contents.php
Documentation is available at file_put_contents.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://au.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Author: Aidan Lister <aidan@php.net> |
// +----------------------------------------------------------------------+
// $Id: file_put_contents.php,v 1.8 2004/05/26 07:00:47 aidan Exp $
* Replace file_put_contents()
* http://php.net/function.file_put_contents
* @author Aidan Lister <aidan@php.net>
if (($file = fopen($filename, 'w+')) === false ) {
if (($bytes = fwrite($file, $content)) === false ) {
Documentation generated on Mon, 11 Mar 2019 10:16:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|