Hello Folks,
Not sure this is possible but thought one of you would know.
I am designing a site that allows people to have a template-based web site. All the site files for each customer sit in different folders on the web server but all the text sits in one database for all customers. The key to the Db files is cust_id.
When I open a new account for a customer all the default Db entries, web folders, pages/images etc are created at the click of a button.
Now to enable the new site to correctly access the relevant data for each customer I am having to manually change the index page on each site to point to the correct cust_id.
Is there a way that I can update the index.php file automatically when I create a new account? ie, search for "$cust_id=" and update it?
Hope all that makes sense.
Many thanks.