I have a code to create watermark on each image that was uploaded. At the end of this code, I would like every time a person uploaded the image, a record was created in a notebook. I came to this code but I'm having a hard time getting it to keep track of multiple uploads.
$arquivo = "rastro.txt";
$data = date("d/m/Y H:i:s");
$ip = $_SERVER['REMOTE_ADDR'];
$browser = $_SERVER['HTTP_USER_AGENT'];
$fp = fopen($arquivo, "w+");
fwrite($fp,"Nome: $new_name | Data: $data | IP: $ip | Navegador: $browser");
fclose($fp);
How do I loop the code?