[PHP] PHP-variabelen gebruiken in een TXT-bestand

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
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
code:
1
2
3
4
5
6
7
<?php include"../../../config.inc.php"; ?>
[b]Server Specificaties[/b]
&#8226; Plesk Administrator <?php echo($v_plesk); ?>
&#8226; Spamassassin <?php echo($v_spam); ?> / ClamAV <?php echo($v_clam); ?>
&#8226; MySQL <?php echo($v_mysql); ?>
&#8226; phpMyAdmin <?php echo($v_phpmyadmin); ?>
&#8226; Perl 5.8

Acties:
  • 0 Henk 'm!

  • DiLDoG
  • Registratie: Oktober 2002
  • Laatst online: 18-09 08:45
header("content-type: text/plain"); ?

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Hey... het werkt :*)