ok i might have a problem relaying what my problem is but here goes i have a site kinda like planet-source-code.com the scripts are stored in text files and then when the user wnats to access the script they open a php page which opens the txt file and reads from it. MY problem is on the reading part when it displays the script instead of it displaying the lines right like <BR> <?php echo "hey";<BR> ?><BR> it smooshes them togethor like <?php echo "hey"; ?>
Replace <BR> with <BR> in your saved code and it should display as <BR> I would think. I know if you are using a GUI like Frontpage to code and you type <BR> the actual html code will show as <BR>. This may be the case here also.
no its not that dude its a script i cant do that..
Remember, if you output something, it will be interpreted as HTML. If you want to preserve the look of the .txt, first do a htmlentities() on the content, then a nl2br().
-L-