Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: : Kaip padaryti kad koks nick toki faila sukuria

Parašė sidicer· 2010 Sau. 9 21:01:50
#1

Sveiki. Kuriu Register puslapiuka [Mokinuosi]
ir man nesigauna padaryti kad koki nick iveda. Toks failas susikurtu
Naudoju:
$nick = $_POST['nick'];
$pass = $_POST['pass'];

$informacija="Nick: $nick - Pass: $pass";
$failas="$nick.txt";
$duomenys=fopen($failas, "a+");
fwrite($duomenys, "$informacija\n");
fclose($duomenys);
chmod("$nick.txt", 0777);
echo "Sekmingai uzsiregistravai";




ERROR:
Warning: fopen(Nickas.txt) [function.fopen]: failed to open stream: Permission denied in /home/deiviuxas/domains/sidicer.huh.lt/public_html/tolimesnis.php on line 7

Warning: fwrite(): supplied argument is not a valid stream resource in /home/deiviuxas/domains/sidicer.huh.lt/public_html/tolimesnis.php on line 8

Warning: fclose(): supplied argument is not a valid stream resource in /home/deiviuxas/domains/sidicer.huh.lt/public_html/tolimesnis.php on line 9

Warning: chmod() [function.chmod]: No such file or directory in /home/deiviuxas/domains/sidicer.huh.lt/public_html/tolimesnis.php on line 10
Sekmingai uzsiregistravai



Redagavo sidicer· 2010 Sau. 9 21:01:11