> On 30 Aug 98, at 21:54, Ivan Sergio Borgonovo wrote:

> > I have to admit that ASP offers a really nice feature... the 
> > possibility to mix in the same file HTML and a server side scripting
> > language, but I've heard there are scripting languages on unix
> > plattaform that offer the same feature (there is also an ASP clone).

> Unless I am wrong the real advantage of ASP is that it runs in the 
> Server and not as a separate process.  It is simple enough to stick a
> bunch of exec calls in html to create pages on the fly.  There are plenty
> of scripting languages in the unix world. I simply use the basic ssi and
> perl.

OK. Have you read my email to the end?

However running application in the same memory area has its 
advantages and its disadvantages.
If you load more than an instance of the same program on W95 it 
will have a common code area and separated data area, while NT 
will load different instance of the same program in different memory 
area. (Just a rough idea)
The second is surely more memory consuming but preserve the 
machine from irreparable crashes.
The same is true for ASP.
NT is quite eager for memory while Linux is not.

> If you must pass parameters to the query on-the-fly then you need 
> some embedded language that I have not used (I know of no way to pass
> parameters via ssi).  I usually just make the url a call directly to a
> program rather than an html file with something embedded in it.

mumble... I'm sure there is a nice way to use DB under Linux but 
now I'm engaged with NT.
Furthermore I know there are other scripting languages/server 
software for Linux that offer very interesting features (DB query 
results embedded in HTML etc...)

> I for one would really like to hear more about setting up an NT 
> intranet. What does it cost?  Can you use such a machine as intranet
> server and also for other purposes?  Should you devote one machine to that
> purpose (I think so)?  Will that machine also hold the rdbms and all other
> programs or will you use separate boxes? 

OK I'll give you an idea of my experience.
I've got a P133 machine running NT WS, PWS, ASP, a Proxy 
server and an ODBC link to an Access DB.
There are 2 EIDE HD (1.7 Mbytes/sec), 48Mb RAM and a Realtek 
network card (10Mbit/s).

I won't explain why I have to use ASP application with the browser 
on my NT machine but trust me if I say that the only difference 
would be the transfer rate of the network adapter and no other 
"computing" time differences.

Well ASP it is a little bit slow and when I access the DB, I, as a 
single user, can appreciate the time while a page is created.

On plain HTML things are quite istantaneous.

On our server, dual processor PPro, lotta Ram, fast SCSI HD, 
running MS SQL server, email server (I cant be more specific for 
my ignorance), 2 virtual sites, ASP, a quite large DB, things run 
very fast... but actually that server cost as a new car, I think more 
than 9,000$.

Just to be understod... what I mean when I say you can mix HTML 
and server side scripting on the same file is:

demo.asp

<html>
<head>
<title>Gorilla Bookstore</title>
</head>
<body>
<%
Some code HERE eg definition of function f(n)
%>

<H1>This is a demo</H1><BR>

<% FOR loop %>

<H2>The result of function f(n) is:<% =f %></H2><BR>

<% END FOR loop %>

....

supposing f will be equal to the index of the for loop this will 
produce this HTML:

<html>
<head>
<title>Gorilla Bookstore</title>
</head>
<body>
<H1>This is a demo</H1><BR>
<H2>The result of function f(n) is: 1</H2><BR>
<H2>The result of function f(n) is: 2</H2><BR>
<H2>The result of function f(n) is: 3</H2><BR>

...

I think that being able to mix HTML and code is very useful, since 
in most cases you can build up a standard HTML page and then 
insert the code.
So you can easily work with template and divide designer tasks 
from programmer tasks.

I really dont know how and if you can do this in Perl but on a C++ 
CGI you have to write...

demo.cpp

...
int f(const int n) const
{
        return n;
}

cout<<"<html><head><title>Gorilla 
Bookstore</title></head><body><H1>This is a demo</H1>";
for(int i=1;i<=3;i++)
{
        cout<<"<H2>The result of function f(n) 
is:"<<f(i)<<"</H2><BR>";
}

easyness of design is lost...
Of course you can implement libraries for inclusion in templates 
etc...
But I'm not the right person to start a course on advanced C++ CGI 
techniques...

Have I been clear?

Mumble as for the NT side...
You will find a lot of FREE components to use email server from 
your ASP application, administering the server remotely (accounts, 
directories access, access to the NT registry), files utilities etc...

Sorry I'm a linux sustainer, but I think that Mary need this kind of 
help since she will use NT anyway.

My 3rd box will be a linux box, but I have to make my money on a 
NT box before I can buy a linux box!!!
These are just the cases of life. As I said If I was in the position to 
choose I would have chosen a linux box.
--------------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
--------------------------------------------------

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to