PDA

View Full Version : Php and .txt include



creative
07-09-2005, 05:06 PM
I am looking for php code that will allow me to insert a simple txt file which will be parsed and applied by a css. Anyone know of such a toy?

Creative.

cr3ative
07-09-2005, 06:15 PM
<?php include("text.txt"); ?>

cr3

Twey
07-09-2005, 09:44 PM
$txtcontent = implode(file("text.txt"), "\n");

If you want to give it a seperate stylesheet from the rest of the page then, quite simply, you can't. If this is what you want to do, try putting it in an iframe.