Jump to content
php.lv forumi

Klez

Reģistrētie lietotāji
  • Posts

    1,896
  • Joined

  • Last visited

Everything posted by Klez

  1. nu ne jau tu pac to PHP instaleeji ... ja buutu pac instaleejis, tad ar zinaatu kaapec mod_php4.c nau tew ... taa luuk...
  2. nu ja tie ir siiki tad var uz vinja PC nomest cepuminju ... un vadiities peec taa ... bet ar nau droshi, jo cepuminju var jebkuraa briidii izdzeest ..
  3. Klez

    BAN skripts.

    mysql_query("CREATE TABLE IF NOT EXISTS ip_adreses (ip VARCHAR (255) DEFAULT '0')"); mysql_query("INSERT INTO `ip_adrese` (`ip`) VALUES('".$_SERVER['REMOTE_ADDR']."') "); function get_ip(){ $all = mysql_query("SELECT COUNT(ip) FROM `banu_tabula` WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."' LIMIT 1"); $one = mysql_fetch_row($all); mysql_free_result($all); return $one[0]; } if (get_ip() > 0) die("Tew ir BANS"); //... te tad taalaak ko nu vien vaig ja neder tad sorry :( P.S ja tu rakstiisi lietotaaja IP tabulaa (tajaa pashaa) tad tew wisi pietotaaji banosies ... :) Testeejis neesmu, bet vaidzeetu straadaat ..
  4. var arii ar switch switch($_GET['page']){ case 1: include("sakums.php"); break; case 2: include("faili.php"); break; case 'blog': include("blog.php"); break; .... .... default: include("sakums.php"); } manupraat vienkaarsh variants .. :)
  5. peec pus gada tu pac sapratiisi ko esi tur sakodeejis ? vieniigi ja taadaa stilaa kodee ... iespeejam, bet ja gribeesi kur straadaat par koderi, tad tew buus probleemas un naaksies vien lietot daudz maz standartus ... :)
  6. kursh taadam adminam darbu devis ? laikam pac savu kasti adminee :)
  7. kad instaleeji MYSQL un kad vinsh tev PIRMO REIZI prasiija to login un pass, tad vaidzeeja rakstiit ROOT un ROOT peec ja scriptaa tu lietotu: mysql_connect("localhost","root",""); //sheit viss straadaa (paroli NEVAIG)
  8. paskaties sheit :) manupraat neslikts variants ....
  9. kluuda taada ka video jau nu to4 nevaig DB likt. bet nu ja tu dikti veelies vinju tur iestūķēt ... paskaties te siikaakai info
  10. Klez

    DLL's

    jaasaka gan ka tikai priex win ... http://lv2.php.net/get/pecl-5.0.4-Win32.zip/from/a/mirror
  11. Klez

    DLL's

    atver lv2.php.net un nosuuknee ...
  12. izskataas ka programmeeshana naw arii priex tewis .....
  13. nuuu tu iesaakumaa wareetu paraadiiit to error ko paraada ....
  14. par inetu .... nu jaa uz mDSL tas wisss meetaajas ..... konkreetaak mana kaste ...
  15. venom tu tikai konfigu glabaa aarpus win partiicijas ?
  16. Klez

    styles..

    iztaisi <?=$_SERVER['REMOTE_ADDR']?> <?php $ip = "81.198.21.139"; if($_SERVER['REMOTE_ADDR'] == $ip) { echo ''; } else { echo 'neiet..'; exit; } //vienkaarshaax varinats //ja ip nebuus vienaada ar $ip tad viss apstasies if (if($_SERVER['REMOTE_ADDR'] != $ip) die("Neiet"); ?>
  17. Klez

    styles..

    nu tad tev sesijaa jaasaglabaa vai cepums jaataisa .... <? session_start(); switch($_GET['style']){ case 1: $HTTP_SESSION_VARS['stils'] = 'zalsh'; break; case 2: $HTTP_SESSION_VARS['stils'] = 'zils'; break; case 3:$HTTP_SESSION_VARS['stils'] = 'sarkans'; break; default: $HTTP_SESSION_VARS['stils'] = 'zalsh'; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1257"> <title>Super lapa</title> <link rel="stylesheet" href="<?=$HTTP_SESSION_VARS['stils']?>.css" type="text/css"> </head> <body> Te mana super lapas paareejaa dalja </body> </html> ceru ka iebrauci :)
  18. Klez

    styles..

    war ariii ar switch ... :) switch($style){ case 1: echo "stils 1"; break; case 2: echo "stils 2"; break; case 3: echo "stils 3"; break; default: echo "stils 1"; }
  19. Klez

    styles..

    ir priex tam .... bet nu mauaali tachu ir skaidri uzrakxtiic un paraadiits ... piemērs no manuāļa un te buus latviski arii.... priex tiem kas manuaaljus nelasa wai negrib to dariit ... :( <?php $var = ''; // This will evaluate to TRUE so the text will be printed. if (isset($var)) { echo "This var is set set so I will print."; } $var = 'kaut kas da jebkas'; //sheit naw weertiibas mainiigajam // mainiigajam vajab pieshkirt veertiibu, tad mainiigais izvadiisies if (isset($var)) { echo "Veertiiba ir un tiek izvadiits shis txt."; } ?>
  20. Klez

    styles..

    programeeshana arii priex tewis naw.... wismaz taa izskataas .... manuaalis tak jaalasa .... wai ja 100% nezini tad labaak nemaz neraxti .... :)
  21. njaaa.... bet lai nebuutu 4 stundas jaa4akareejas .... tam ir domaats <?=phpinfo()?> kas paraada info par php un ariii php.ini atrashanaas wietu ..... :)
  22. man php.ini ir itaa: extension=extensions\php_gd2.dll un straadaa bez probleemaam :)
  23. pameegini itaa: extension=extensions\php_gd2.dll
  24. nju te ira ... 200000 itkaa jaw nebremzee.... :)
  25. sawaakt waru... naw probleemas :) a ko dariit shaadaa gadiijienaa? bik war paātrināt ja querijam pieliek HIGH_PRIORITY
×
×
  • Create New...