Does anyone know if it is possible to include files with pure html, for example an html equivalent to
ThanksCode:<?php include('file.php') ?>
post in the HTML forum, they may be able to help
Nah they dont. Including a file is locating a file and then using it. As HTML is client side, it doesnt have the ability to look files up on a server like PHP, ASP etc do. Just use the code you posted in the top of your HTML document?
If knowledge is power - Why isn't our army librarians?!
Statistics show that 63% of all statistics are fake.
When i was little i broke my neck, and i havent looked back since .
I completed the internet in 1 week. The end boss was pretty easy though .
No. You need some type of server side language. Just use PHP. If you need to keep your extensions as *.html, then put this in .htaccess:
Code:AddType application/x-httpd-php .php .html
Again, with that you'll need a line in .htaccess saying that the file should be server parsed. Or, you can change your extension to *.shtml. I used to do that, actually...
I would just recommend using PHP.
I think *shtm and *.shtml are the same... like *.htm and *.html
yeah. problem is im making the site for a friend who has never done any coding before. so i want to keep it simple and let them just use dreamweaver to update their webpage. using php means that they need to have php installed on their computer and understand localhost and all that.
I guess i could just tell them to make the changes in dreamweaver and test it live though...
The site is for a campus society, using the varsity alotted webspace, so they get min permissions on the server, im pretty sure they dont get access to .htaccess files.
Thanks for your help though.
..yeah, but this is where all the clever ppl hang outpost in the HTML forum, they may be able to help