Quote:
|
Originally Posted by tbd911
hi there i'm using php to develop my website and i did the retrieveing data from the database but i don't know how to retrieve a data from a folder outside the database for example a word document ,so if i make any changes on that document when click save it will be saved auttomaticlly .shall i put the path of that data on a spesfic field on the database .
so can anybody help me with that ?????
|
You have to read the file in and work on it, and it's unlikely that you could do much with a Word doc except read it in and spit it back out.
For a text file, try:
$lines_of_text_array = file('/path/to/your/file.txt');