Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php increase number in file by one

<?php
$file = 'count.txt';
$fdata = file_get_contents ( $file );
$fdata = intval($fdata) + 1;
file_put_contents($file, $fdata);
?>
 
PREVIOUS NEXT
Tagged: #php #increase #number #file
ADD COMMENT
Topic
Name
7+8 =