append file in php
$fptr = fopen('myfile2.txt','a');
fwrite($fptr,"hii.. this is appending inside filen")
fclose($fptr);
append file in php
$fptr = fopen('myfile2.txt','a');
fwrite($fptr,"hii.. this is appending inside filen")
fclose($fptr);
php append file
<?php
$file = 'myFile.txt';
$text = "This is my Textn";
file_put_contents($file, $text, FILE_APPEND | LOCK_EX);
// adds "This is my Text" and a linebreak to the end of "myFile.txt"
// "LOCK_EX" prevents anyone else writing to the file at the same time
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us