View Full Version : Php and .txt include
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?
07-09-2005, 06:15 PM
<?php include("text.txt"); ?>
$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.
Powered by vBulletin® Version 4.2.1 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.