How to dyanmically change text from one file across multiple domains?

superaff1984

Senior Member
Premium Member
Joined
Jun 16, 2010
Messages
992
Reaction score
131
How can I insert something on our site where we can change the name of a product across multiple domains? I'm hoping to do this through PHP. I need to have one file that I can update. This one file will change the brand name of a product across several sites registered under different domains?
 
I'd look at perhaps creating a database with the data in then allowing all your different hosting packages access to read and display the values you need.

If you don't want to go down the database route, you could use fopen to read in a simeple text file on one of your domains and then show whatever is in the text file accordingly.
 
take a look at PHP Include
make it:
<?php include("http://someurl.com/somefile.php");?> on all the sites.
Now you just have to change whatever is inside somefile.php
 
Back
Top