uni Posted February 15, 2005 Report Share Posted February 15, 2005 Bik padumsh jautaajums - kaa lai paraada kaut kaadu no faila vai kkur ielasiitu tekstu, kas satur arii <?php .. ?> ? Tb, lai php kods neizpildaas.. Link to comment Share on other sites More sharing options...
bubu Posted February 15, 2005 Report Share Posted February 15, 2005 emm? ar echo nevar? <?php $str = "<?php bla bla ?> bla <?php bla ?> bla"; echo $str; ?> Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 15, 2005 Report Share Posted February 15, 2005 emm? ar echo nevar? <?php $str = "<?php bla bla ?> bla <?php bla ?> bla"; echo $str; ?> 13739[/snapback] taa neies cauri :) atveroshais tags ir un paliek tags ;) tapeec parversham to par HTML simbolu: <?php $str = htmlentities("<?php bla bla ?> bla <?php bla ?> bla"); echo $str; ?> ;) Link to comment Share on other sites More sharing options...
bubu Posted February 15, 2005 Report Share Posted February 15, 2005 Netika prasīts, ka jāizvada korekts HTML kods. Nodomāju, moš cilvēks ar PHP CLI režīmā programmē :)) Es jau laikam bik nesapratu, kur bij vaina. Ja jau entītēs tad jā, jāpārvērš visi < > & ' " simboli par attiecīgajām entītēm. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 15, 2005 Report Share Posted February 15, 2005 mjaa starp citu teoretiski php ir taada funkcija kaa show_source($fails); kur $fails= surces fails (celjs uz failu) Pat vajadzeetu izvadiit krasainu ;) ;) Link to comment Share on other sites More sharing options...
Kaklz Posted February 16, 2005 Report Share Posted February 16, 2005 Vienkārši pasaki, ka iekļaujamais fails nav jālaiž caur PHP php.txt: <?php echo 'la la laaa .. shii ir magjiskaa source'; ?> display.php: include('php.txt'); Link to comment Share on other sites More sharing options...
Recommended Posts