Reading File Contents

From: Date: Mon, 25 Aug 2003 19:22:15 +0000
Subject: Reading File Contents
Groups: php.db 
Request: Send a blank email to php-db+get-30087@lists.php.net to get a copy of this message
Hello. I have what should be a simple fix for the more advanced programmers out there. I'm having problems with the display format of a text file. I've been reading several resources, and I'm just not having much success with it. How would you be able to display the following file named test.txt: 1. Test 2. Test 3. Test ...without it displaying like: 1. Test 2. Test 3. Test? I've tried the nl2br function, as well as adding "\n" to the end of each line and using fgets to replace "\n" with "<br>". However, nothing seems to be working. I'm probably missing something very simple, but if someone wouldn't mind helping a rookie out, I'd appreciate it. --Joel _________________________________________________________________ Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

« previous php.db (#30087) next »