making links from a flat text file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spudmclard
Forum Newbie
Posts: 16
Joined: Thu Oct 27, 2005 3:06 am

making links from a flat text file

Post by spudmclard »

Hi is it possible to read a flat text file in the following format

user1
user2
user3 etc....

and produce a html file where each entry is a clickable link???

Hope someone can help..
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Sure is. Take a look at:

file()
fopen()
file_get_contents()
Post Reply