Search found 2 matches
- Fri May 05, 2006 2:21 pm
- Forum: PHP - Code
- Topic: load info from text doc
- Replies: 8
- Views: 413
Solution
EXTERNAL TEXT FILE: [copy1]blah, blah, blah, blah, blah.[ENDCOPY] [copy2]blah2, blah2, blah2, blah2, blah2.[ENDCOPY2] [copy3]blah3, blah3, blah3, blah3, blah3.[ENDCOPY3] REGEX: $textfile= "info.txt"; $handle = fopen($textfile, "r"); $contents = fread($handle, filesize($textfile)...
- Tue May 31, 2005 2:56 pm
- Forum: PHP - Code
- Topic: Referencing an external text file for content
- Replies: 1
- Views: 207
Referencing an external text file for content
Is there a way to create an area of an HTML page that calls an external text file? This way, where ever the text is throughout the site, it could be changed in one simple text file and then it automatically be updated on every HTML page where it is referenced without having to physically change ever...