Parašė desire· 2009 Bal. 7 14:04:47
#20
ok :)
if (file_exists(".../folder/".$userdata['user_id'].".txt")) {
$fp = fopen(".../folder/".$userdata['user_id'].".txt", "r+");
$sk = fread($fp);
$irasyt = $sk+1;
fwrite ($fp, $irasyt);
fclose($fp);
$teises = ".../folder/".$userdata['user_id'].".txt";
chmod($teises,0777);
} else {
$fp = fopen(".../folder/".$userdata['user_id'].".txt", "w");
$irasyt = 1;
fwrite ($fp, $irasyt);
fclose($fp);
$teises = ".../folder/".$userdata['user_id'].".txt";
chmod($teises,0777);
}
bet vistiek nieko :o ?|
Redagavo desire· 2009 Bal. 7 16:04:28