Tauheed Posted March 19, 2014 Share Posted March 19, 2014 Dear Experts, i have crated my personal page, whenever i need to change in header, buttons and etc, where i will change in each page, now i would like to separate button page, header & footer page, so friends how i can link these pages to my index and other pages. Link to comment Share on other sites More sharing options...
Ingolme Posted March 19, 2014 Share Posted March 19, 2014 You'll need a server-side language like PHP to include the header and buttons files into each page. Link to comment Share on other sites More sharing options...
Tauheed Posted March 20, 2014 Author Share Posted March 20, 2014 You'll need a server-side language like PHP to include the header and buttons files into each page. Is it not possible in HTML?? actually i have better know in HTML than PHP. if it is possible to make every page separate then joint it. I mean button page, header, footer, ad etc....... I will be thankful for your kind reply. Link to comment Share on other sites More sharing options...
Ingolme Posted March 20, 2014 Share Posted March 20, 2014 HTML on its own is very limited. The task you want to do is one that server-side languages are designed for. Link to comment Share on other sites More sharing options...
thescientist Posted March 20, 2014 Share Posted March 20, 2014 Another option is to use a build tool like Grunt to do concatenation, but that is arguably a more difficult learning curve. Link to comment Share on other sites More sharing options...
Petrucho Posted March 20, 2014 Share Posted March 20, 2014 (edited) If your only purpose is to implement a "header"-file in multiple pages, I would suggest you to read: http://www.php.net/manual/en/language.basic-syntax.phptags.php http://il1.php.net/manual/en/function.include.php All you need to know: your server have to support PHP! In each page you choose to use php-script, you have to save the file as ".php" All you need to do: open php-script tag, add the include statement, close your php-script tag. 3 lined of simple code and you're done. No need to cover all the php documentation, for just "including" a single file in few pages. Edited March 20, 2014 by Yolo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now