mukeshdak

2025-09-29_write to a text file

Sep 28th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | Source Code | 0 0
  1. $myfile = fopen("log.txt", "a") or die("Unable to open file!");
  2. $txt = date("h:i:sa")." : Entered validateUser.php\n";
  3. fwrite($myfile, $txt);
  4. fclose($myfile);
Tags: php
Advertisement
Add Comment
Please, Sign In to add comment