How to display the file content, when a link to a file is stored in mysql DB?
Posted on 2005-04-22
It might be a simple one:
I have mysql DB, and in one of the fields there's a link to a text file. File itself is sitting somewhere in the file system (instead of storing the text in the DB).
Now, when I fetch the data from DB, for exemple:
while ($word_data = mysql_fetch_array($rh))
It prints the link stored in the DB, no problem.
My question is how to OPEN the file? How to display the text instead of the link only?