Grey_Wolf Posted July 24, 2007 Report Share Posted July 24, 2007 janisetnies --> tune tikai prasi gatavis skriptus,bet pat nemegjini uzklausiit ko tev saka ! --- izmanto to pashu text conteri ... --------- <a href="bla.php">bla<?php te atver kontera raditaju ?></a> ----- bla fails: ieraksti conterii skaitu : redirekte uz bla_y.zip --------- VISS .... tiesham pasham nav pat kripatinjas logjikas? Link to comment Share on other sites More sharing options...
janisetnies Posted July 24, 2007 Author Report Share Posted July 24, 2007 (edited) laikam sapratu! apmēram tā: <a href="fails.php">lejupladet failu<a /> fails.php: pieskiata +1 txt failam un include("faili/fails.zip"); apmērma tā ja? Sanāk ka katru reizi būs jātaisa jauns fails! Bet nu tie faili bieži nebūs! Edited July 24, 2007 by janisetnies Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 24, 2007 Report Share Posted July 24, 2007 laikam sapratu! pieskiata +1 txt failam un include("faili/fails.zip"); Iemacies tachu vienreiz lasit !!! Kur es esmu teicis ka INCLUDE ? ??? Link to comment Share on other sites More sharing options...
janisetnies Posted July 24, 2007 Author Report Share Posted July 24, 2007 redirekte uz bla_y.zip Neprotu! Visi jau nevar parzinat visas php funkcijas! ar include vai tad navar? Un kas ir tas ko tu man iesaki? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 24, 2007 Report Share Posted July 24, 2007 (edited) SKATIES SHEIT !!! UN SHEIT !!! ceru ka pirmaja saitaa atradisi kur ierakstiit meklesanai.... P.S. Un iesku iemaciit lasit ko citi uzrakstijushi -> nevis maalt vienu un to pashu... Edited July 24, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
janisetnies Posted July 24, 2007 Author Report Share Posted July 24, 2007 īsti nesparotu http://lv2.php.net/manual/en/function.http-redirect.php Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 24, 2007 Report Share Posted July 24, 2007 header("Location:bla.zip"); Link to comment Share on other sites More sharing options...
janisetnies Posted July 28, 2007 Author Report Share Posted July 28, 2007 <?php header('Location: bla.zip'); ?> <?php if (file_exists('bla.txt')) { $fil = fopen('bla.txt', r); $dat = fread($fil, filesize('video.txt')); echo $dat+1; fclose($fil); $fil = fopen('bla.txt', w); fwrite($fil, $dat+1); } ?> Kas šeit nepareizi? Link to comment Share on other sites More sharing options...
bubu Posted July 28, 2007 Report Share Posted July 28, 2007 Pēc kā tu spried, ka tur ir kautkas nepareizi? Link to comment Share on other sites More sharing options...
janisetnies Posted July 28, 2007 Author Report Share Posted July 28, 2007 (edited) Nestrādā, uzmet šādu eroru: Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/faili/fails.php:2) in /var/www/html/faili/fails.php on line 2 otrā rinda: <?php header('Location: bla.zip'); ?> Edited July 28, 2007 by janisetnies Link to comment Share on other sites More sharing options...
Val Posted July 28, 2007 Report Share Posted July 28, 2007 nodzēs pirmo. Link to comment Share on other sites More sharing options...
cucumber Posted July 28, 2007 Report Share Posted July 28, 2007 pasaki kam tev skripta vajaga echo $dat+1;, kuru tapatas neviens neredzes ??? Un andrisp ir uzrakstiji labu postu par headers already sent by, ir links tepat foruma !!! Link to comment Share on other sites More sharing options...
janisetnies Posted July 28, 2007 Author Report Share Posted July 28, 2007 Tiešām viss strādā un pat skaita :) Paldies visiem kas palidzeja! Link to comment Share on other sites More sharing options...
GedroX Posted July 30, 2007 Report Share Posted July 30, 2007 Ja izmantosi Location redirektu, tad fails un faila adrese būs pieejama "pa tiešo" un cilvēki varēs lejupielādēt to apejot visus php un skaitītājus. Link to comment Share on other sites More sharing options...
Recommended Posts