Topic: how i include a table in multiple sites? (Read 1060 times)
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« on: Apr 09, 2011, 02:53:40 pm »
Hello
I have multiple of websites. I want to include an html table in every footer of those sites. The table code is in a file located on another site. All sites are php.
I want this so that I can modify the table from one file instead of having to modify it mutiple times.
Is that possible ? And how can I do it ?
Give any best idea which is helpful for me.
Thank you.
Regards
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #1 on: Apr 09, 2011, 03:18:59 pm »
I have put the table code in a file datalinks.inc
Then I used the following function:
<?php include("datalinks.inc"); ?>
in every site's footer.
when i do that its not work and i did not know what to do.
what would i do now?
help me
What a dork
Posts: 17
102 credits Members referred : 0
« Reply #2 on: Apr 14, 2011, 05:39:53 pm »
Put table code in one .php file and include that file in footer. In this if you made any changes in that .php file it will automatically reflect in all pages.
World Wide Whale
Posts: 160
974 credits Members referred : 0
« Reply #3 on: Jun 04, 2011, 05:56:08 am »
Your function <?php include("datalinks.inc"); ?> should work, please check your link. Have you put the link correctly?
Total Zero
Posts: 5
42 credits Members referred : 0
« Reply #4 on: Aug 27, 2011, 01:50:09 pm »
ctually i dont understand ur query
Where are my glasses?
Posts: 20
144 credits Members referred : 0
« Reply #5 on: Aug 28, 2011, 01:17:47 pm »
You can pretend it's part (as in 'a child') of the <div> that it's being loaded into.
Atari ST fan
Gender:
Posts: 7
42 credits Members referred : 0
« Reply #6 on: Oct 19, 2011, 10:27:06 am »
As you have many website and want use same table in your all site's footer. Create a separate footer.php file. This file online contains the code which you want in each site's footer. And upload this file on any of server. Any include full path in the file as follow.