|
Posted by Adrienne Boswell on 07/29/07 00:25
Gazing into my crystal ball I observed Paul Furman <paul-@-edgehill.net>
writing in news:ykMqi.29886$2v1.842@newssvr14.news.prodigy.net:
> I know it's wrong but it works: putting the <title> in the body of the
> document inside another <head> because I'm generating this with php &
> kind of boxed myself into not having access to the text I want till I
> get well into the body, for example:
> http://edgehill.net/gallery/photo-update/6-24-07/pg1pc1
>
Better to put all your logic at the beginning of your script. Close
connections as soon as possible. It's also easier for you, as a
developer, to put that stuff at the top, easier to find and debug. I
write mostly ASP, but the same is true for any language, eg:
<% option explicit%>
<!--#include file="connectionstring_inc.asp"-->
<% 'declare variables
'open recordsets, get info and put it into arrays
'close recordsets
%>
<!--#include file="linkrel_inc.asp"-->
<% 'above file includes the Doctype, html and head elements, stylesheet,
favicon, title, and meta information
%>
</head>
<body>
....
<!--#include footer_inc.asp"-->
<% 'above closes db connection, end body and html %>
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|