viuks Posted May 22, 2003 Report Share Posted May 22, 2003 Tik tiko saaku vispaar ar php kautko dariities:wacko:. Varbuut kaads var pasviest ideju kaa guestbooku uzveidot... Link to comment Share on other sites More sharing options...
dainisx Posted May 23, 2003 Report Share Posted May 23, 2003 Nu ja nav vēlēšanās pašam kaut ko darīt, tad vienīgais ko var ietekt - jebkurā meklētājā uz raksti "PHP script", saku kā ir atradīsi tik guestbooks ka nevarēsi vien izvēlēties kuru ņemt. Labas lietas var atrast Krievijas saitos, vienreiz pat uzdūros uz šī PHP.lv foruma scripta, kaut kur laikam vēl mājās mētājas, gan vēl kādi 70 scriptiņi no kuriem idejas var smelties. Pameklē un domāju gan jau atradīsi nemazums labu lietu, un galvenais ka tas ir free. Ja nesanāk kaut ko pašam atrast, uzsit mailu par iteresējošo lietu un iespējams, kad būs laiks kaut ko arī aizsūtīšu. Link to comment Share on other sites More sharing options...
anomaalais aaxc Posted May 23, 2003 Report Share Posted May 23, 2003 labi daudz php [un ne tikai] scripti ir atrodami www.hotscripts.com, manupraat lielaakaa / labaakaa kraatuve. par rus saitiem neko nezinu, jo krievu valodu nejeedzu :D Link to comment Share on other sites More sharing options...
sviesc Posted May 23, 2003 Report Share Posted May 23, 2003 zinama lieta ka guestbooku newar ucept viena minute te bus bišķi japasvist ja nevelies neko raxtit ar roku tad pa tiešām pameklee neta :huh: Link to comment Share on other sites More sharing options...
Benvenuto Posted May 29, 2003 Report Share Posted May 29, 2003 Tik tiko saaku vispaar ar php kautko dariities:wacko:. Varbuut kaads var pasviest ideju kaa guestbooku uzveidot... Kā uztaisīt guestbooku izmantojot PHP un MySQL no hackers.lv te buus links Link to comment Share on other sites More sharing options...
Little_Hacker Posted May 29, 2003 Report Share Posted May 29, 2003 Nu es te taadu pavisam vienkaarshu piemeeru :| index.php <code><font color="#000000"> <html> <head> <title>G-Book</title> </head> <body> <div align="center"> <table width="600"> <font color="#0000CC"><?php $datu_fails </font><font color="#006600">= </font><font color="#0000CC">array_reverse </font><font color="#006600">(</font><font color="#0000CC">file </font><font color="#006600">(</font><font color="#CC0000">"dati.txt"</font><font color="#006600">)); while (</font><font color="#0000CC">$x </font><font color="#006600">= </font><font color="#0000CC">each </font><font color="#006600">(</font><font color="#0000CC">$fails</font><font color="#006600">)) { </font><font color="#0000CC">$mas </font><font color="#006600">= </font><font color="#0000CC">explode </font><font color="#006600">(</font><font color="#CC0000">":|:"</font><font color="#006600">,</font><font color="#0000CC">$x</font><font color="#006600">[</font><font color="#0000CC">1</font><font color="#006600">]); echo </font><font color="#CC0000">'<tr><td><b><u>'</font><font color="#006600">.</font><font color="#0000CC">$mas</font><font color="#006600">[</font><font color="#0000CC">0</font><font color="#006600">].</font><font color="#CC0000">'</u></b><i>'</font><font color="#006600">.</font><font color="#0000CC">$mas</font><font color="#006600">[</font><font color="#0000CC">1</font><font color="#006600">].</font><font color="#CC0000">'</i></td></tr>'</font><font color="#006600">; echo </font><font color="#CC0000">'<tr><td>'</font><font color="#006600">.</font><font color="#0000CC">$mas</font><font color="#006600">[</font><font color="#0000CC">2</font><font color="#006600">].</font><font color="#CC0000">'</td></tr><hr noshade>'</font><font color="#006600">; } </font><font color="#0000CC">?> </font><tr><td> <table width="100%"> <form action="write.php" meghod="post"> <tr><td width="150"><b>Vārds:</b></td><td><input size="30" name="vards"></td></tr> <tr><td width="150"><b>Koments:</b></td><td><textarea name="koments" rows="8" cols="45"></textarea></td></tr> <tr><td></td><td><input type="submit" value="Nosūtīt"> <input type="reset" value="Nodzēst"></td></tr> </form> </table> </td></tr> </table> </div> </body> </html> </font> </code> write.php <code><font color="#000000"> <font color="#0000CC"><?php $vards </font><font color="#006600">= </font><font color="#0000CC">trim </font><font color="#006600">(</font><font color="#0000CC">$vards</font><font color="#006600">); </font><font color="#0000CC">$koments </font><font color="#006600">= </font><font color="#0000CC">trim </font><font color="#006600">(</font><font color="#0000CC">$koments</font><font color="#006600">); if (empty (</font><font color="#0000CC">$vards</font><font color="#006600">)) { echo </font><font color="#CC0000">'Lūdzu ievadi savu vārdu!'</font><font color="#006600">; } if (empty (</font><font color="#0000CC">$koments</font><font color="#006600">)) { echo </font><font color="#CC0000">'Lūdzu ievadi savu komentu!'</font><font color="#006600">; } else { </font><font color="#0000CC">$vards </font><font color="#006600">= </font><font color="#0000CC">htmlspecialchars </font><font color="#006600">(</font><font color="#0000CC">$vards</font><font color="#006600">); </font><font color="#0000CC">$koments </font><font color="#006600">= </font><font color="#0000CC">htmlspecialchars </font><font color="#006600">(</font><font color="#0000CC">$koments</font><font color="#006600">); </font><font color="#0000CC">$koments </font><font color="#006600">= </font><font color="#0000CC">wordwrap </font><font color="#006600">(</font><font color="#0000CC">$koments</font><font color="#006600">, </font><font color="#0000CC">100</font><font color="#006600">, </font><font color="#CC0000">' '</font><font color="#006600">, </font><font color="#0000CC">1</font><font color="#006600">); </font><font color="#0000CC">$datu_fails </font><font color="#006600">= </font><font color="#CC0000">"dati.txt"</font><font color="#006600">; </font><font color="#0000CC">$apstrade </font><font color="#006600">= </font><font color="#0000CC">fopen </font><font color="#006600">(</font><font color="#0000CC">$datu_fails</font><font color="#006600">,</font><font color="#CC0000">"a"</font><font color="#006600">); </font><font color="#0000CC">$date </font><font color="#006600">= </font><font color="#0000CC">date </font><font color="#006600">(</font><font color="#0000CC">H</font><font color="#006600">:</font><font color="#0000CC">i </font><font color="#006600">- </font><font color="#0000CC">d</font><font color="#006600">.</font><font color="#0000CC">m</font><font color="#006600">.</font><font color="#0000CC">Y</font><font color="#006600">); </font><font color="#0000CC">fwrite </font><font color="#006600">(</font><font color="#0000CC">$apstrade</font><font color="#006600">, </font><font color="#CC0000">"$vards:|:$date:|:$koments"</font><font color="#006600">); </font><font color="#0000CC">fclose </font><font color="#006600">(</font><font color="#0000CC">$apstrade</font><font color="#006600">); echo </font><font color="#CC0000">'Koments ir ierakstīts!'</font><font color="#006600">; </font><font color="#0000CC">?> </font> </font> </code> Datu fails pagaidaam tuksh.. Cerams ka straadaa.. :)) Link to comment Share on other sites More sharing options...
Little_Hacker Posted May 29, 2003 Report Share Posted May 29, 2003 Veel aizmirsu tikai vienu lietu pieraxtiit :D No faila index.php shiim rindinjaaam veelams jaaizskataas shaadi: <code><font color="#000000"> echo '<tr><td><b><u>'.$mas[0].'</u></b><i>'.$mas[1].'</i></td></tr>',"n"; echo '<tr><td>'.$mas[2].'</td></tr><hr noshade>',"n"; </font> </code> Tikai tur pirms n ir sliipsviitra / tikai uz otru pusi :) un no faila write.php veelams ka shii rindinja izskataas shaadi: <code><font color="#000000"> fwrite ($apstrade, "$vards:|:$date:|:$koments n"); </font> </code> Atkal tas pats.. pirms n taa sliipsviitra ;) Link to comment Share on other sites More sharing options...
tautietis Posted July 6, 2003 Report Share Posted July 6, 2003 >>little hacker pirmkārt jābūt shaadi index.php failā, tā pareizi <code><font color="#000000"> while ($x = each ($datu_fails)) {</font> </code> un izmēģinājos visādi, bet write.php nekaadi nelauj nosuutiit drukā Parse error: parse error in write.php on line 16 tjipa $datums vainīgs, bet netieku skaidrs kaa Link to comment Share on other sites More sharing options...
v3rb0 Posted July 7, 2003 Report Share Posted July 7, 2003 >Parse error: parse error in write.php on line 16 <code><font color="#000000"> $date = date (H:i - d.m.Y);</font> </code> ieliec pēdiņās "H:i - d.m.Y" http://lv.php.net/date Link to comment Share on other sites More sharing options...
parrymason Posted March 26, 2005 Report Share Posted March 26, 2005 Tik tiko saaku vispaar ar php kautko dariities:wacko:. Varbuut kaads var pasviest ideju kaa guestbooku uzveidot... 701[/snapback] Iesaku pameklēt Arguestbook. Ļoti labs guestbooks, manā lapā arī šobrīd tāds ir. Link to comment Share on other sites More sharing options...
Kavacky Posted March 26, 2005 Report Share Posted March 26, 2005 Gudriniek, paskaties uz datumu, kad pavediens taisīts - "2003. gada 22. May 12:59"! Un izskatās, ka atbildi jamais jau dabūjis un te nav bāzis snuķi jau sazin cik ilgi. Link to comment Share on other sites More sharing options...
parrymason Posted March 27, 2005 Report Share Posted March 27, 2005 Gudriniek, paskaties uz datumu, kad pavediens taisīts - "2003. gada 22. May 12:59"! Un izskatās, ka atbildi jamais jau dabūjis un te nav bāzis snuķi jau sazin cik ilgi. 15606[/snapback] Tiešām :blink: Nemaz nepamanīju. Link to comment Share on other sites More sharing options...
Osiris Posted March 27, 2005 Report Share Posted March 27, 2005 http://www.invisionboard.com/ www.phpbb.com/ Link to comment Share on other sites More sharing options...
bubu Posted March 27, 2005 Report Share Posted March 27, 2005 (edited) Vēlviens :) Osiris, tak izlasi vismaz divus pēdējos postus pirms, ko raksti! Pie tam, php/innovision diez vai var klasificēt kā guestbooku. Nu protams tādiem mērķiem var izmantot, bet diez vai tā ir prātīga doma. Edited March 27, 2005 by bubu Link to comment Share on other sites More sharing options...
Osiris Posted March 27, 2005 Report Share Posted March 27, 2005 (edited) Atkal atvainojos - atkal piedzēros. Ja tads dēr: http://www.golfsviesturi.lv/?lang=lat&category=book, dāvināšu scriptu. [maxyudin at balticom dot lv] P.S. Есть ещё вариант с яваскриптом (дерево открывается-закрывается). только не уверен в совместимости с многими броузерами... Edited March 27, 2005 by Osiris Link to comment Share on other sites More sharing options...
Recommended Posts