View Full Version : Php and .txt include
07-09-2005, 06: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, 07: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.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.