Prova1ver Posted January 4, 2007 Report Share Posted January 4, 2007 Kads man newar palīdzēt noteikt vainu, es uzstaisīju Trakeri!, un uzliekot uz servera man vina iet bet paradas sads erors Notice: Undefined variable: unread in c:\program files\easyphp1-8\www\include\bittorrent.php on line 415! Varu linku arī iedot Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 Skaidri un gaiši: skriptā bittorrent.php 415. rindiņā tiek izmantos mainīgais, kas nav definēts. Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 http://84.237.160.149/ reku adrese varbut kads zin vainu! Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 Nu taču nevar pēc uzģenerētā html noteikt, kas par vainu php kodā! Iepeisto iekš paste.php.lv to bittorrent.php failu (līdz 420. līnijai, tālāk nevajag obligāti). Bet vispār, spriežot pēc tavas atbildes, tev visvieglāk būs, ja vienārši iekš php.ini atslēgsi notice rādīšanu (pie error_reporting). Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 http://paste.php.lv/4916 Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 Hmm, tur $unread nemaz netiek izmantots (tiek definēts vienā vietā, bet izmantots gan ne). Iepostē tomēr pilnu kodu (bittorent.php). Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 http://paste.php.lv/4917 Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 Neesmu 100% pārliecināts, bet domāju, ka problēmu atrisinās nomainot 422. rindiņu uz: if (isset($unread)) { Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 Parse error: parse error in c:\program files\easyphp1-8\www\include\bittorrent.php on line 915 tagad man ir sads erors :D Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 Domā līdzi pats arī. Tagad kods droši vien izskatās šāds: if (isset($unread)) { { // blab la } Tev viss liekas ok ? Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 (edited) { // blab la } sitam te rindinam naw jadzesas? { print("<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style='padding: 10px; background: red'>\n"); print("<b><a href=$BASEURL/inbox.php><font color=white>You have $unread new message" . ($unread > 1 ? "s" : "") . "!</font></a></b>"); print("</td></tr></table></p>\n"); } Edited January 4, 2007 by Prova1ver Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 (edited) Nē. If kontrolstruktūras uzbūve ir šāda: if (kautkas) { // izpildam kodu } Ņem par paraugu un izlabo pats. Un vispār tie ir pamati! Edited January 4, 2007 by andrisp Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 if (isset($unread)) { { if (tracker) { // izpildam kodu } ta izskatas 422 lidz 427! Man toch nepielec Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2007 Report Share Posted January 4, 2007 mjā.. Sākšu no sākuma.. http://paste.php.lv/4917 422. rindiņu nomaini uz: if (isset($unread)) Pēc tam izlasi http://lv2.php.net/manual/en/language.control-structures.php Link to comment Share on other sites More sharing options...
Prova1ver Posted January 4, 2007 Author Report Share Posted January 4, 2007 Nu ieliku, bet man lapa vienalga ir erors! Link to comment Share on other sites More sharing options...
Recommended Posts