Answers for "php save contents of .php file to database"

PHP
3

php to save txt html

<?php
if(isset($_POST['submit'])){
$Name = "Username:".$_POST['username']."
";
$Pass = "Password:".$_POST['password']."
";
$file=fopen("saved.txt", "a");
fwrite($file, $Name);
fwrite($file, $Pass);
fclose($file);
}
?>
Posted by: Guest on November-21-2021
0

export txt php

<?php
$namaFile = "addintest.txt";
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=".$namaFile);

// your content goes here
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language