ok so i know it doesn’t have anything to do with blender I’m just curious how to make a dynamic web page that will read text file from other file lets say content.txt and file will look like <page1>something here</page1>
and after that to put in original html document just <page1> and it will “paste” the text from that txt file
i looked over google but its hard to find something all i found so far is ‘Smarty’ that i don’t know how it works and i don’t have time to learn that:(
so if eny one had /have an app/script/trick that will do that i will be grateful
by the way i use nvu and kompoZer for web page creation
There’s a couple of ways, conceptually. First, all HTML is governed by www.w3c.org, so you need to check that out. Secondly, there is the server and the client, and ways to read data and make a dynamic web page at either end. At one level there is CSS, or style templates, that control how all pages look and feel. Then in a page, there is a way to include a standard section of html code. Java is built-in kinda to pages, is controlled by Sun Computers, java.sun.com, so you can use java applets to process and read in data files, either cookie files . Then there is database access, where you can use a server to access a database and use the values to construct a web page “on the fly” and send it out. Then there is dynamic HTML from Microsoft, but it only runs in IE. Hope this has given you some food for thought.
to help you better understand, it uses PHP include functions, and not HTML. HTML is simply a base for the design, whereas all dynamic content online is through PHP and MySQL. this is excluding flash websites and javascript forms (not so reliable).
At one level there is CSS, or style templates, that control how all pages look and feel
CSS provides preset defaults for the HTML classes and some basic page schemes, but not content.
Java is built-in kinda to pages, is controlled by Sun Computers, java.sun.com, so you can use java applets to process and read in data files
that technique would not be good to use. as far as i understand (it’s a bit vague) that you want different content displayed on a template page?
try reading my article and see if it’s what you’re looking for.
If it is just a simple include, you might want to look at ‘Server Side Includes’ (ssi)
Your web server needs to be configured to support it. However, in my experience, most hosting providers have it enabled already - you just may need to rename your main file with the ‘shtml’ extension.
thank you all for replays i found that inlude in php is what i was looking for ;p
just added like
<?php include(“menu.txt”);?>
and there it goes ;] thank you all ;]
ps if interested im building this website (for my work) http://migero.dhc.com.pl/index2.php