3
fwrite - Write new line in text file
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$ip = $ip . PHP_EOL;
$file = "text.txt";
$fh = fopen($file, 'a');
fwrite($fh, $ip);
fclose($fh);
?>
Interserver | Standard & VPS Cloud Hosting | $2.50 /Month
Flexible VPS hosting platform to deploy your online projects.
Economical and balanced between processor cores, memory and storage
rated 3 times
(3)
(0)
comments: 0 / hits: 1538
/ 3 years ago, sun, mar 8, 20, 06:58:05
More From
» PHP
Comments
There are no comments for this Snippet yet