uuzeris Posted June 26, 2003 Report Share Posted June 26, 2003 taatad man ir taad sekojosha probleema. man vaig kautkaa panaakt lai apachis dalju .php scripta palaizj bet dalju padod tiiraa viedaa brovserim. tb lai kad cilveeks paskataas view source vinjsh redzeetu normaalu php scriptu un taadeelj shinii gadiijumaa nekaadi < > neder. tachu man ir nepiecieshams palaist dalju no taa php scripta. uz perl es aptuveni zinu kaa to panaak, bet uz php? Link to comment Share on other sites More sharing options...
Roze Posted June 26, 2003 Report Share Posted June 26, 2003 Iiisti nesapratu kur ir probleema.. To dalju kuru tu gribi palaist liec normaali ieksh <? ?> to kuru ne ieksh jau mineetajiem < > php papildus veel eksistee koda hailaitinga funkcijas http://lv.php.net/manual/en/function.highl...hlight-file.php Link to comment Share on other sites More sharing options...
uuzeris Posted June 26, 2003 Author Report Share Posted June 26, 2003 desa jau taada ka man vaig bez < > un visaadiem highlightiem. aptuveni taa lai uuzers vienk. redzeetu text/plain php scriptu. man ir doma tagad vienk. text failaa iemest to scriptu, kursh buutu plainaa jaaredz uuzerim, un tad no cita vienk. vinju izvadiit. buus jaanotestee. btw kaa ir iespeejams caur php mainiit content-type? ar vienk echo vai kautkaa sarezjgjiitaak? Link to comment Share on other sites More sharing options...
Roze Posted June 26, 2003 Report Share Posted June 26, 2003 Nu principaa jau var iztitk arii bez < > tikai tev tad jaataisa kaut kaa taa: <? echo "<?"; ?> // te naak viss php kods kuru nevajag paarseet phpinfo(); <? echo "?>"; ?> Content type var mainiit izmantojot header() funkciju http://lv.php.net/manual/en/function.header.php piem header("Content-type: application/pdf"); utt Link to comment Share on other sites More sharing options...
Recommended Posts