sooraj
Sat 9 April 2011, 02:53 pm GMT +0200
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
sooraj
Sat 9 April 2011, 03:18 pm GMT +0200
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
jeffreylee
Thu 14 April 2011, 05:39 pm GMT +0200
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.
speedy81
Sat 4 June 2011, 05:56 am GMT +0200
Your function <?php include("datalinks.inc"); ?> should work, please check your link. Have you put the link correctly?
dianna
Sat 27 August 2011, 01:50 pm GMT +0200
ctually i dont understand ur query
website design
Sun 28 August 2011, 01:17 pm GMT +0200
You can pretend it's part (as in 'a child') of the <div> that it's being loaded into.
smartyjohn
Wed 19 October 2011, 10:27 am GMT +0200
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.
<?php include("
http://www.example.com/footer.php"); ?>
I think this is the things you want.