Re: Best alternative to asp

[ Available lists | Index of freebsd-isp | Month of Oct 2000 | Week of 23 Oct 2000 | Raw email | View thread | Wrap long lines | Reply ]
From
Forrest W. Christian <forrestc@imach.com>
Date
23 Oct 2000 15:46:14
Subject
Re: Best alternative to asp
Message-ID
Pine.BSF.4.21.0010231538001.22944-100000@workhorse.iMach.com

In reply to

[ Hide this part ]
On Mon, 23 Oct 2000, Jim Weeks wrote:

> >Chilisoft's solution is a unix implementation of what I
> >call (visual?)basic/ASP. This is what most people consider asp.
>
> I understand the difference in what drives these two different
> approaches. What I don't understand is what differences it makes in the
> application code. I am afraid that my reluctance to use M$ products is to
> blame for my ignorance on the subject.


(The following code is not tested and I realize it is also not as small as
it could be) And I'm not a vbasic programmer...

Apache::ASP Show all font sizes from 1 through 5:

<html>
<body>
<% for ($size=0;$size<5;$size++) { %>
<font size="<%=$size%>">This is a sample of size <%=$size%>
</font><br>
<% } %>
</body>
</html>

"Traditional ASP":

<html>
<body>
<% for size=0 to 5 %>
<font size="<%=count %>">This is a sample of size <%=count%>
</font><br>
<% next %>
</body>
</html>

Note the "code" in the first example is perl -- the code in the second
example is basic.

They are not interchangable. Thus, you cannot just load Perl::ASP and
expect to use a development tool like Macromedia UltraDev and have it work
- as ultradev (in asp mode) spits out VBasic stuff.

- Forrest W. Christian (forrestc@imach.com) AC7DE
----------------------------------------------------------------------
iMach, Ltd., P.O. Box 5749, Helena, MT 59604 http://www.imach.com
Solutions for your high-tech problems. (406)-442-6648
----------------------------------------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Elapsed time: 0.161 seconds