PDA

View Full Version : Alternative for Frontpage include.


mrruben5
05-24-2005, 02:57 PM
I have a webhosting packet without the Frontpage extensions, and I want to do the following:

Frontpage has a function that let's you include content within a certain tag (for example the body tag).

Because my host only has php support, I want to use an alternative to the include content from the body tag.

So the only way to do this is by using a function, like:

bodyinclude('file.htm');

Does anyone want to create this function for me?

delinear
05-24-2005, 03:12 PM
How exactly does this work? If you just want to include a different file somewhere in your page you can do this easily with PHP using the include() function, eg:

<html>
<body>

<p>Some text here...</p>

<?php
include('yourfile.htm');
?>

<p>Some more text</p>

</body>
</html>

You can include the files you want anywhere in your page and you can include as many different files as you like or include the same file multiple times. Is that what you mean? (Sorry, never used Frontpage so I'm not entirely sure how their system works).

mrruben5
05-24-2005, 11:12 PM
People that use my "website system" of includes have no other tools then frontpage to edit pages.

Well, I don't want nested <html> and <head> tags in my documents, so that's why i'm asking for a function to include everything inside the body tag. So it reads the file, and strips out the body tags and everything out of it, and then echoes it.

I also didn't know frontpage could do this.

<!--webbot bot="include" u-include="http://www.example.com/nav/top.asp" tag="body" -->
http://www.seoconsultants.com/frontpage/include-page.asp

See?