Log file is more important for developer. It helps to find out bug or value checking for your site.
Process :
Step 1: Create log.php file and copy following code. Then run log.php file.
<?php $file = 'log.txt'; $log_value = 'This text will be save in log.txt file'; $current = file_get_contents($file); // Open the file to get existing content $current .= $log_value . "\n"; // Append a new person to the file file_put_contents($file, $current); // Write the contents back to the file ?>
Step 2: Then check log.txt file
Thanks. Nice tutorial
ReplyDelete