Ik wil graag php-variabelen (config.inc.php) printen in bestand.txt bij het laden in MSIE. Dit lukt nu perfect, maar hij geeft alleen de output in HTML-achtige style. De \n's, enters die oorspronkelijk in het .txt bestand stonden worden genegeerd. Het staat nu alleen goed bij bron-weergeven. De output wordt dus standaard een hele lap tekst zonder enters.
Mijn HTAccess
AddType application/x-httpd-php .txt
Part of Bestand.txt - Executed as PHP
Mijn HTAccess
AddType application/x-httpd-php .txt
Part of Bestand.txt - Executed as PHP
code:
1
2
3
4
5
6
7
| <?php include"../../../config.inc.php"; ?> [b]Server Specificaties[/b] • Plesk Administrator <?php echo($v_plesk); ?> • Spamassassin <?php echo($v_spam); ?> / ClamAV <?php echo($v_clam); ?> • MySQL <?php echo($v_mysql); ?> • phpMyAdmin <?php echo($v_phpmyadmin); ?> • Perl 5.8 |