Thread: CSS Tutorial Updated
Results 16 to 22 of 22
08-18-2002, 05:11 AM #16
It is essential to have some server-side language engine parsing these values. With PHP, ASP or Perl, you can get very complex processing going on (this forum runs on PHP, with data held in a mySQL database).
For the functionality you mentioned above, you could g probablr get away with something called Server Side Includes. Your pages are called *.shtml so that they get parsed, and it gives you some basic functionality.
I recommend getting a host with a server-side language as standard, tho. Most use either php or asp nowadays, but failing that, nearly all supply perl/cgi.
To inlude another page (ie, a 'header') , here are some examples -
<? @include("path/to/myHeader.php"); ?>
<!--#include file="path/to/myHeader.asp" -->
To echo out the current host, or virtual hostname (ie, a subdomain) -
<? echo $SERVER_NAME; ?>
<% response.write(request.serverVariables("SERVER_NAME") %>
The variable $SCRIPT_NAME will give you the path and the filename, so used in conjunction with SERVER_NAME, you have the current url of the page.
If you have options, I recommend PHP. Its open source, easier to use, and its not Microsoft.
I'll be honest, I am starting to see what people see in ASP, but you never forget your first love...
08-18-2002, 05:45 PM #17
11-16-2002, 06:03 PM #18
I had a look at your tutorial. Great job! I picked up a couple new tips.
I think I've seen a reference to the problem you mentioned with z-index on another site. There was a simple fix for it, either a semi-colon after the last item, or making sure one of the commands was always last. I've been on so many sites, I don't remember where I saw it.
There is one site I'd like to recommend for your resources page, http://www.w3schools.com/. It has very good tutorials and the examples come up in a divided window. with once side that allows you to modify the sample code so you can practice, and the other side shows the example, which updates with your modified code when you hit the display button.
11-16-2002, 06:56 PM #19
Agreed. The w3schools are very good, thats where I learnt xml. I will add them.
I think the z-index problem has been pretty much sorted by the 6th generation browsers, which is good.
And thank you for your kind words.
11-17-2002, 09:58 AM #20
i'm curious, since i've never learned php/perl, which of the three (ASP,PHP,Perl) is the best or do they each have advantages?
11-17-2002, 10:51 AM #21
11-17-2002, 11:30 PM #22