dutchy Posted August 10, 2005 Report Share Posted August 10, 2005 Doma tāda - uztaisīt nelielu skirptu, kur jāievada savs vārds u.c. dati. Nakošreiz sistēma atpazīst tevi un parāda tavu informāciju pēc tavas i.p. Link to comment Share on other sites More sharing options...
SkaKri Posted August 10, 2005 Report Share Posted August 10, 2005 bet ja IP mainās? no reālās uz citu? :P un datorzālēs? Link to comment Share on other sites More sharing options...
dutchy Posted August 10, 2005 Author Report Share Posted August 10, 2005 pavisam neliela datubāze, galvenokārt priekš manis. :) nevajag jau tur 10 000 apmeklētāju datus :P bet ja IP mainās? no reālās uz citu? :Pun datorzālēs? 20715[/snapback] Link to comment Share on other sites More sharing options...
bra Posted August 10, 2005 Report Share Posted August 10, 2005 cepumos -> viss slēpjas cepumos Link to comment Share on other sites More sharing options...
bubu Posted August 10, 2005 Report Share Posted August 10, 2005 To parasti dara ar kukijiem - ieķeksējot to ķeksi "atceries mani" pēc datu postošanas atpakaļ browserim pados kukijui ar nekodētu/nokodētu userneimu/e-pastu/sazin ko vēl. Tad kad nākamreiz pieprasīs to lapu, tad php skripts, izvadot formu, pastīsies vai ir tāds kukijs un atbilstoši izvadīs to atcerēto informāciju. Kukija vietā var lietot sesijas, ja grib. Link to comment Share on other sites More sharing options...
Robis Posted August 10, 2005 Report Share Posted August 10, 2005 Labāk tiešām taisīt nevis pēc ip, bet cookijiem. Link to comment Share on other sites More sharing options...
dutchy Posted August 10, 2005 Author Report Share Posted August 10, 2005 ok, bet možka tomēr var izstrādāt skriptu - tā informācija vairāk būs vajadzīga man nevis pašu lietotāju ērtībām :) To parasti dara ar kukijiem - ieķeksējot to ķeksi "atceries mani" pēc datu postošanas atpakaļ browserim pados kukijui ar nekodētu/nokodētu userneimu/e-pastu/sazin ko vēl. Tad kad nākamreiz pieprasīs to lapu, tad php skripts, izvadot formu, pastīsies vai ir tāds kukijs un atbilstoši izvadīs to atcerēto informāciju. Kukija vietā var lietot sesijas, ja grib. 20718[/snapback] Link to comment Share on other sites More sharing options...
SkaKri Posted August 10, 2005 Report Share Posted August 10, 2005 nezinu vai cepumi... ja grib uz flat tad: http://paste.php.lv/2312 un tad vēl nāksies tev konfigurēt lauciņus lai saglabātu vārdu, un ko tev tur vēl vajag.... Link to comment Share on other sites More sharing options...
bubu Posted August 10, 2005 Report Share Posted August 10, 2005 Nu tak vienkārši raksti failā kautvai: $f = fopen('ip_adreses.txt', 'a'); fwrite($f, $_POST['username'] . '=' . $_SERVER['REMOTE_ADDR'] . "\n"); fclose($f) Link to comment Share on other sites More sharing options...
SkaKri Posted August 10, 2005 Report Share Posted August 10, 2005 nu re. Link to comment Share on other sites More sharing options...
dutchy Posted August 10, 2005 Author Report Share Posted August 10, 2005 http://www.srt.lv/news.php <?php $f = fopen('ip_adreses.txt', 'a'); fwrite($f, $_POST['username'] . '=' . $_SERVER['REMOTE_ADDR'] . "\n"); fclose($f) ?> Kāpēc neit? pirmais iet> http://www.srt.lv/new.php Bet otrais BUBU > http://www.srt.lv/news.php Link to comment Share on other sites More sharing options...
bubu Posted August 10, 2005 Report Share Posted August 10, 2005 A kā mums to zināt, ko tur esi sarakstījis? Link to comment Share on other sites More sharing options...
SkaKri Posted August 10, 2005 Report Share Posted August 10, 2005 pirmajam arī IR jāiet ;D Link to comment Share on other sites More sharing options...
dutchy Posted August 10, 2005 Author Report Share Posted August 10, 2005 failaa ir šitas: <?php $f = fopen('ip_adreses.txt', 'a'); fwrite($f, $_POST['username'] . '=' . $_SERVER['REMOTE_ADDR'] . "\n"); fclose($f) ?> Link to comment Share on other sites More sharing options...
dutchy Posted August 10, 2005 Author Report Share Posted August 10, 2005 aa ok tiek pievienotas i.p. adreses tekstam ,bet vēl vajag lai pie i.p. pievienotu vārdu ip_adreses.txt saturs =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =80.233.156.35 =80.233.156.35 =80.233.156.35 =194.19.239.13 =194.19.239.13 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =217.145.215.197 =194.19.239.13 =217.145.215.197 =217.145.215.197 =217.145.215.197 Link to comment Share on other sites More sharing options...
Recommended Posts