uni Posted February 15, 2005 Report 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..
bubu Posted February 15, 2005 Report Posted February 15, 2005 emm? ar echo nevar? <?php $str = "<?php bla bla ?> bla <?php bla ?> bla"; echo $str; ?>
Grey_Wolf Posted February 15, 2005 Report 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; ?> ;)
bubu Posted February 15, 2005 Report 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.
Grey_Wolf Posted February 15, 2005 Report 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 ;) ;)
Kaklz Posted February 16, 2005 Report 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');
Recommended Posts