Jump to content

Need some help, dont know what its called...


SouThPaw09

Recommended Posts

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

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.

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.