ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 (edited) a varbūt ir kaut kāda iespēja taisīt savādāku scriptu ar šādām pašām ipašībām? ps...Nosuutiju savam hosta deveejam meilu ... :) tagad jaagaida tikai atbilde! :) Edited November 23, 2007 by ravelis Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 ravelis, ir iespēja - veic redirektus pirms outputa. Vēl var arī šādu metodi: // Pašā pašā skripta sākumā ob_start(); // Te iet viss kods // Pašās pašās beigās $output = ob_get_contents(); echo $output; ob_end_clean(); Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 (edited) man vins tad izskataas sitaads <html kods> <? ob_start(); // Te iet viss kods sitais tagad ir mans kods // Pašās pašās beigās $output = ob_get_contents(); echo $output; ob_end_clean(); ?> <html kods> un man vins tagad neraada manu kodu kas atrodas starp tavu iedoto kodu! Edited November 23, 2007 by ravelis Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 To ob_start vajag pirms visa outputa (arī pirms html). Un to ob_get_contents pašās pašās beigās (pēc html arī). Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 a tas ob_start nav jaliek <? un ?> nu vobshen sitaa <? ob_start(); ?> un šitā <? $output = ob_get_contents(); echo $output; ob_end_clean(); ?> Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 Protams, ka ir. Un vispār vajag vispirms pamēģināt nevis jautāt te, vai tā gadienā nav jādara. ;) Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 ..... :D labās ziņas tadas... errora vairs nava ... sliktaaas.... variaak nekaa cita arii nava :D pec tava koda ievietošanas man rāda tikai tīru baltu lapu! :D Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 Pag, moška kļūda ir tur, kad echo $output ir pirms ob_end_clean(). Apmaini vietām. Un vispār iesaku arī izmantot <?php nevis <?. Mazāk problēmu. Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 tagad viss ir okz... bet errors Warning: Cannot modify header information - headers already sent by (output started at /var/www/web4/web/test3.php:1) in /var/www/web4/web/test3.php on line 98 tik un taa veel uzraadaas Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 Tev test3.php 1 līnijā vēl aizvien notiek kautkāts outputs. Visticamāk, ka kautkāda atstarpe, enters vai BOM simboli. Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 ...:( :( nu nekaadiigi nevaru dabuut pie dziiviibas! a maybe tev pasham kaut kur aizkeeries kaads sitaada veida scripts ar kuru tu vareetu padaliities? Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 Iemet to failu iekš kāda zip (var rar) un augšupielādē kaut kur. Es gribu apskatīt to mistisko skriptu. Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 http://yy.lv/download.php?f=82292 <-- shii nav sleeptaa yy.lv reklaama :D Link to comment Share on other sites More sharing options...
andrisp Posted November 23, 2007 Report Share Posted November 23, 2007 Laikam jau jāsāk ar to, ka BOM simboli tur IR. Neredzu nekur session_start() kaut gan izmanto $_SESSION mainīgo. Neredzu arī nevienu header() vai citu funkciju, kas sūtītu headerus. Tas vispār ir īstais skripts ? Link to comment Share on other sites More sharing options...
ravelis Posted November 23, 2007 Author Report Share Posted November 23, 2007 vai tocha nepareizais! esku iistais > http://yy.lv/download.php?f=82298 Link to comment Share on other sites More sharing options...
Recommended Posts