SouThPaw09 Posted May 23, 2008 Share Posted May 23, 2008 Here's what i want to do. Say I have 2 webpages on 1 website, and say i have the same news thing on both of those. How could i make it so i change words in a .doc and have it change what the news is so i dont have to change it in both webpages individually. Thanks, SouThPaw Link to comment https://forums.phpfreaks.com/topic/106875-need-some-help-dont-know-what-its-called/ Share on other sites More sharing options...
haku Posted May 23, 2008 Share Posted May 23, 2008 You can use fopen, fread, and fclose. An easier way to do it would be to put the text in .txt files, or in .php or .html files, then use include to insert the files in the page. I would recommend against using .doc files, as they often have extra unnecessary markup in them that will slow down your page load times and/or cause unpredictable behaviors. Link to comment https://forums.phpfreaks.com/topic/106875-need-some-help-dont-know-what-its-called/#findComment-547877 Share on other sites More sharing options...
SouThPaw09 Posted May 23, 2008 Author Share Posted May 23, 2008 yes, i meant .txt but i wasn't thinking, lol. You can check out my website i am making here... www.fragonservers.com/teamrelentless basically what i was wanting to do is make it so i could update the txt file and the matches and media boxes text would update on all pages. Maybe that is a little clearer than what i said before. Link to comment https://forums.phpfreaks.com/topic/106875-need-some-help-dont-know-what-its-called/#findComment-548029 Share on other sites More sharing options...
SouThPaw09 Posted May 23, 2008 Author Share Posted May 23, 2008 btw, would i use fopen, fread, and fclose in succession? Could you give me an example of how it would look w/ all three together or something? Link to comment https://forums.phpfreaks.com/topic/106875-need-some-help-dont-know-what-its-called/#findComment-548039 Share on other sites More sharing options...
haku Posted May 23, 2008 Share Posted May 23, 2008 I linked to the php.net descriptions of all three of those functions in my last post. There are explanations of how they work as well as examples and comments that you can go through to figure out how they work. If that isn't enough, put all three into google, and you can almost definitely find a tutorial on how to use them. Link to comment https://forums.phpfreaks.com/topic/106875-need-some-help-dont-know-what-its-called/#findComment-548075 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.