I know that I can copy/paste the HTML code into the script, but I was wondering if I could just call the HTML page to display. It sure would make editing easier. I hope that this makes sense. Thanks!
D O N
I know that I can copy/paste the HTML code into the script, but I was wondering if I could just call the HTML page to display. It sure would make editing easier.
You could write a routine in the script which reads a .html file and outputs it. Then simple call that routine and feed it the name/path of the html file to output whenever you need it.
As to what exactly that routine would look like, that depends on the language the script is created in.
this thread might provide some insight on working with include
includes and directories [webmasterworld.com]
I would like to have example.html loaded on my server and when I wanted it to be displayed I would rather have a script call the .html file then to have to copy/paste the HTML code into the script itself. Any suggestions/ code fragments on how this could be accomplished would be apprecaited. I think the include statement would work just as I want, if only I was using PHP.
Thanks
D O N
[edited by: jatar_k at 5:06 am (utc) on April 1, 2003]