Closed Thread Icon

Topic awaiting preservation: ASP scripting . . . (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11897" title="Pages that link to Topic awaiting preservation: ASP scripting . . . (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: ASP scripting . . . <span class="small">(Page 1 of 1)</span>\

 
YoBoyE
Nervous Wreck (II) Inmate

From:
Insane since: Sep 2001

posted posted 10-03-2001 00:36

Today, i started a little with asp, because its already installed on my server, PHP is in the process of installation (or so they say) . I am curious how to do the effect of the php template tutorial ( http://www.gurusnetwork.com/tutorials/php/phptemplate/phptemplate.html by referencing smaller html documents to fit in a certain place on my page. I REALLY hope that made sense...if not, just say so, and i will try to clarify it. Thanks.


WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 10-03-2001 00:49

Been a while since I wrote that shin dig.

Currently I work with the current structure.

<? $title = "page title"; ?>
<? include($DOCUMENT_ROOT . "/templates/header.php"); ?>

<? include($DOCUMENT_ROOT . "/content/page.php"); ?>

<? include($DOCUMENT_ROOT. "/templates/footer.php"); ?>

The basics of what happens is as follows.

I create a basic page.

<html>
<head>
<title><? echo $title ?></title>
</head>
<body>
<p>content</p>
</body>
</html>

Then I would break up the files:

header.php is:
<html>
<head>
<title><? echo $title ?></title>
</head>
<body>

content.php is:
<p>content</p>

footer.php is:
</body>
</html>

There is a quick overview of how it is all organized in my pages.

So now you want to break it up even further. And I am going to tell you that it is fine as well.

I have some pages that include a menu, then include a news section, they include a header, include copyright information and then include the footer.

You can do as much or as little as you want. Maybe you only need to include a menu, maybe you need to include 100 different pieces.

My reccomendation is to do what you are comfortable, and what does not slow down your computer.

If you try to include say 1000 different files you might run into performance problems on the cpu, or you might not.

Check out php.net's documention you can't go wrong there.

YoBoyE
Nervous Wreck (II) Inmate

From:
Insane since: Sep 2001

posted posted 10-03-2001 02:05

hmm, my bad, i didnt clarify well enough in my previous post. sorry for any confusion i may have caused. I want a script that can do what that php layout can do, but in ASP. Anyways, thanks.

Drakkor
Maniac (V) Inmate

From: Seatte, Warshington, USA
Insane since: Dec 2000

posted posted 10-03-2001 05:36

Although it's not really ASP, you're server should support SSI (most do these days)...

<!-- #include file="includeme.html" --/>

Make sure it is not within the asp tags (i.e. <% not in here %> ) but rather outside of them like so...

<%
'some asp script here
%>
<head></head>
<body>
<!-- #include file="hereIam.html" --/>
</body>



« BackwardsOnwards »

Show Forum Drop Down Menu