Click to See Complete Forum and Search --> : updating one file?


drasque
09-28-2003, 06:40 PM
what's the best way to update a page simply by updating one file?

the text file contains headings and then an article for the heading. how do i go about creating a page that shows only the heading and then links to the full article?

And then when I want to update, simply update the text file?

I'm new to PHP, so any ideas would be extrememly helpful, thanks :)

pyro
09-28-2003, 06:42 PM
You just need to use a PHP include to do this. Something like:

<?PHP
include "yourfile.php";
?>Which will inlude whatever is in yourfile.php in the spot the include was called. You can look at http://us4.php.net/include/ for more information on it.