Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

overwrite file php

file_put_contents('file.txt', 'bar');
echo file_get_contents('file.txt'); // bar
file_put_contents('file.txt', 'foo');
echo file_get_contents('file.txt'); // foo
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #overwrite #file #php
ADD COMMENT
Topic
Name
5+7 =