Jump to content
php.lv forumi

Speed

Reģistrētie lietotāji
  • Posts

    42
  • Joined

  • Last visited

Speed's Achievements

Newbie

Newbie (1/14)

  1. Speed

    fwrite

    on man fopen() vieta izmanot file() ?
  2. Speed

    fwrite

    es uztakstiju scriptu 1.php <html> <head> </head> <body> <form method="POST" action="2.php"> <input type="text" name="txt"> <input type="submit" name="submit" value="ok"> <input type="reset" name="reset" value="izdzest" </form> </body> </html> 2.php <?php $url = "fails.txt"; $text="$txt"; $fh = fopen($url, "a"); fwrite($fh,$text); fclose($fh); ?> vis strada bet man vaig lai $txt ierakstitos jauna rinda ! kaa to var izdarit ?
  3. tnx tag vis izdevas :)
  4. es meginaju <?php $url = "C:\fails.pl"; exec("$url"); ?> bet neizdevas kaa tas ir jadara
  5. nezinu vai tas ir iespjams bet lieta tada man vaig lai caur netu no mana kompja varetu lapaist kadu failu piem fails.pl vai fails.exe !
  6. Man vaig skriptu ka video var skatities no veb to nevelko plz palidzat
  7. Speed

    mail

    kaa ar php var sutit failus uz e-mailu ??
  8. vajag shitaa ? if (preg_match('/.*"$i".*/', $text)) unlink($text);
  9. tnx tag sanaca bet vai nevar uztaisit lai man ik pa laikam nebutu japieraksta piem no 29 uz 30 no 30 uz 31 utt <?php $i = "27"; if ($handle = opendir('C:/AppServ/www/demo_zip/')) { while (false !== ($file = readdir($handle))) { $fails = fopen('fails.txt', 'a'); $text = "C:/AppServ/www/demo_zip/$file"; fwrite($fails, "\n".$text); fclose($fails); $arr = file("fails.txt", 'a'); $i++; if (preg_match('/.*$i.*/', $text)) unlink($text); }; }; ?> meginaju sita bet nesanaca !
  10. es bik palaboju codu <?php if ($handle = opendir('C:/AppServ/www/demo_zip/')) { while (false !== ($file = readdir($handle))) { $fails = fopen('fails.txt', 'a'); $text = " C:/AppServ/www/demo_zip/$file"; fwrite($fails, $text); fclose($fails); $arr = file("fails.txt", 'a'); if (preg_match('/.*29.*/', $text)) unlink($text); }; }; ?> bet radas sitads suds == Warning: unlink( C:/AppServ/www/demo_zip/dfs-0610290023-de_box.dem.zip): Invalid argument in c:\appserv\www\delzip.php on line 10
  11. <?php if ($handle = opendir('C:/AppServ/www/demo_zip/')) { while (false !== ($file = readdir($handle))) { $fails = fopen('fails.txt', 'a',); $text = " $file"; fwrite($fails, $text); fclose($fails); $arr file("fails.txt",'a') if (preg_match('/.*29.*/' $val)) unlink($val); }; }; ?> uzrakstiju shadu codu varbut tas ir nepareizi negribu lai izdzesas visi faili tapec negribas pasham parbaudt !
  12. tatad folderii dem_zip ir sadi faili! dfs-0610301425-awp_map5.dem dfs-0610301404-de_aztec.dem dfs-0610292249-fy_pool_day.dem dfs-0610290455-cs_bank3.dem utt kaa ar php uztaisit lai izdzesas tie faili kam textaa 0610290455 ir 29 ! palidzat ja tas ir iespejams plz!
  13. <?php $maps = file("C:/HLServer/cstrike/mapcycle.txt", "a"); echo "$map[1],$map[2],$map[3]..." ?> man vaig lai man parada visu kas ir rakstits mapcykle.txt kaa uztaisit lai man nebutu jaraksta entos mainigos ???
  14. Speed

    upload

    Kaa vienkarshi uploudot failu ar php ??
  15. nesanak :( <?php $text = $ip $tiesibas; $txt = fopen('C:\HLServer\cstrike\addons\amxmodx\configs\users.ini', 'a'); fwrite($txt, $text); fclose($txt); ?> piemara ja sis butu shads <?php $text = ""18,93,12,30,123" "" "asdfghjklmnbvczxertyuiop" "de""; $txt = fopen('C:\HLServer\cstrike\addons\amxmodx\configs\users.ini', 'a'); fwrite($txt, $text); fclose($txt); ?> un man vins neatver neko balta lapa ! un ari neieraksta bet ja ieraksta bez "" pedinam tad ieraksta!
×
×
  • Create New...