「PHP Programming/Files」の版間の差分

ナビゲーションに移動 検索に移動
→‎PHP 5: copyediting
M (→‎Error Checking: fix comment)
M (→‎PHP 5: copyediting)
''file_put_contents()'' is almost always preferable over the ''fopen()'' method except when performing multiple operations on the same file. It is more preferable to use it for writing than ''file_get_contents()'') is for reading and for this reason, a function is provided here to emulate the behaviour of ''file_put_contents()'' for PHP 4:
<source lang="php">