GB. Posted January 4, 2010 Report Share Posted January 4, 2010 Hvz ka to dabūt gatavu - jautāju jums ! Piemeram : www.manalapa.lv ( apmekleta : 30 reizes ) Respektīvi interese kāds scripts - kods kas nolasa to cik reizes ir uzspiest uz linka ! Ko varētu ieteikt ? Link to comment Share on other sites More sharing options...
ohmygod Posted January 4, 2010 Report Share Posted January 4, 2010 redirekto. links: manalapa/redirect.php?superlapasid redirekt.php nolasa, kas nospiests un aizsūta apmeklētāju, kur pienākas Link to comment Share on other sites More sharing options...
2easy Posted January 4, 2010 Report Share Posted January 4, 2010 viņš jau droši vien grib gatavu skriptu/piemēru, nevis ideju... Link to comment Share on other sites More sharing options...
xmas12 Posted January 4, 2010 Report Share Posted January 4, 2010 Navtas nemaz tik gruuti, vnk redirect un piemeram ja tu esi iegaajis http://manalapa.lv un uzspied uz bannera kura id r 2 tad piemeram tu esi aizdzits uz piemeram http://domaisn.lv/counter.php?id=2 un tad pie counteraarid = 2 tad tanpieskaita +1 ! Cerams saprati bet es uztaisit to vareetu , nav nemaz tik gruuti :) Link to comment Share on other sites More sharing options...
ohmygod Posted January 4, 2010 Report Share Posted January 4, 2010 nez, ko es uzrakstīju.... Link to comment Share on other sites More sharing options...
2easy Posted January 5, 2010 Report Share Posted January 5, 2010 hehe, xmas12, un kur tad palika tavs slavenais "Izlasi PM!"? :D Link to comment Share on other sites More sharing options...
Pentiums Posted January 5, 2010 Report Share Posted January 5, 2010 <?php if(isset($_GET['links'])) { mysql_query(apdeitojam); header('Location: '.$_GET['links']); exit; } ?> Ideja apmēram tāda.. Link to comment Share on other sites More sharing options...
xmas12 Posted January 5, 2010 Report Share Posted January 5, 2010 hehe, xmas12, un kur tad palika tavs slavenais "Izlasi PM!"? :D Es tikai pametu vinam ideju kā to varētu realizēt. Negribejas spiest un sutit vestuli :D :D Link to comment Share on other sites More sharing options...
xmas12 Posted January 5, 2010 Report Share Posted January 5, 2010 <?php if(isset($_GET['links'])) { mysql_query(apdeitojam); header('Location: '.$_GET['links']); exit; } ?> Ideja apmēram tāda.. Ar šo arī varētu sākt, tikai vēl vajag pielikt klāt visādus sīkumus un tad jau arī aizietu! "GB" Ja tev vajag palidzet ar to counter izveidošanu es varētu palīdzēt, mby man sanāktu, meiģināt jau var :) Link to comment Share on other sites More sharing options...
GB. Posted January 5, 2010 Author Report Share Posted January 5, 2010 Man jau tas viss ir skola ! tik mācos ! bušu pateicīgs par katru palīdzību ! Link to comment Share on other sites More sharing options...
2easy Posted January 5, 2010 Report Share Posted January 5, 2010 Man jau tas viss ir skola ! tik mācos ! tgd skolā informātikā/programmēšanā māca php? (ja jā, tad būtu interesanti uzzināt, kurā skolā un klasē tas ir?) vai es kko pārpratu? ;) Link to comment Share on other sites More sharing options...
GB. Posted January 5, 2010 Author Report Share Posted January 5, 2010 Skola - nebija domats kaa vispar izglitojosa iestade , bet gan termins Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 5, 2010 Report Share Posted January 5, 2010 2easy --> skola un skolai ir divi dazaadi jedzieni ;) -- idejjiski kods ir shads : ka jau mineja nosuuti uz citu lapu , velams citaa loga <a href="redirektejam.php?id=1" target="_blank">kruta lapa</a> un faila redirektejam.php --- piesledzmies DB nolsam padoto GET vertiibu $id=$_GET['id']; novacam nost potencialos tiksumus no sakuma un beigam $id=trim($id); --- to visu var viena rindinjaa: $id=trim($_GET['id']); taa kaa tiks izmantot DB tabulas id tad to $id parversam par INTEGER (lai nevaretu veikt 'sql injekcijas') settype($id, "integer"); Sameklejam DB peec ID vjadziigo lapas adresi ( faktisko adresi ) $sql="SELECT adrese FROM tabulis WHERE id=$id"; $result= mysql_query($sql); $row=mysql_fetch_array($result); Apdeitojam DB ierakstu $sql="UPDATE tabulis SET skaits=skaits+1"; $result= mysql_query($sql); Redirektejam uz vajadzigo adresi header('Location: '.$row['adreses']); Principaa tas arii viss. Tik jatceras ka pirms redirekta NEDRIKST izvadiit neko !!! Link to comment Share on other sites More sharing options...
GB. Posted January 5, 2010 Author Report Share Posted January 5, 2010 Un cilvekam ar likam roka - ( valoda ) Man pa isu sadus saprast - saku ka ir ! Piemeram ir fails - links ! P : www.manalapa.lv/faili/hardporn.mp3 Tas laikam bus parak sarezgiti prieks manis ! domaa bija - salikt lapa failu - un + - sekot lidzi lejuplades daudzumam ! u.t.T ar linkiem un citiem resursiem ! Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 5, 2010 Report Share Posted January 5, 2010 Piemeram ir fails - links ! P : www.manalapa.lv/faili/hardporn.mp3 linka klikskju uzskaite ir viens , cik failus novelk pavism kautkas cits ideja liidziiga, bet redirekts nebuus pats labakais risinajums.. jo ja vien atklati negribi raadiit kur tas tavs fails glabajas.. -- Link to comment Share on other sites More sharing options...
Recommended Posts