setting up a web page

This is a discussion on setting up a web page within the Windows Web Servers forums, part of the Web Server and Related Forums category; Running apache http server 2.0 on a win xp pro machine with mssql server 2000 ver 8.0 My ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2004
brianj
 
Posts: n/a
Default setting up a web page

Running apache http server 2.0 on a win xp pro machine with mssql
server 2000 ver 8.0

My main question:I would like to pull some information from a sql
database
I have tested apache by typing localhost into address and that part
works.
So now i have apache runing and mssqlserver running(under windows
authentication).
So now I am type in interdev:
----------------------------------------------------
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>

<P>hello&nbsp;goodbye</P>

<%
cst = "Provider=SQLOLEDB;Data Source=<24.175.137.109>;" & _
"Initial Catalog=<northwind>;Integrated Security=SSPI"
set conn = CreateObject("ADODB.Connection")
conn.open cst
%>

</BODY>
</HTML>
-------------------------------------------

and save this file as sample.asp in apache2/htdocs/sample.asp
my results come up in the browser like this:

--------------------------------
<%@ Language=VBScript %>

hello goodbye
<% cst = "Provider=SQLOLEDB;Data Source=<24.175.137.109>;" & _
"Initial Catalog=;Integrated Security=SSPI" set conn =
CreateObject("ADODB.Connection") conn.open cst %>

--------------------------------
So, the html is being parsed but the asp tags are NOT
what is my problem?? do i need an apache mod to parse asp?

and if you can answer that i have another question:

what should my connection string look like. do i need to setup a dns
because the only reason i installed apache instead of iis is i
couldn't get the dns to recognize my username and password so i was
trying to work around that. I can use oledb somehow with a dsn-less
connection right?


Now i don't know if the connection string is completly correct but my
question is this
  #2 (permalink)  
Old 02-21-2004
David Dorward
 
Posts: n/a
Default Re: setting up a web page

brianj wrote:

> So, the html is being parsed but the asp tags are NOT
> what is my problem?? do i need an apache mod to parse asp?


Yes, but the ASP modules which support VBScript are commercial and I haven't
heard much good about them (I'm not sure if they run under Windows anyway).

I'd suggest you pick a different language to work with. PHP
<http://www.php.net/>, Perl
<http://www.activestate.com/Products/ActivePerl/>, and Python
<http://www.python.org/> are reasonable choices.

--
David Dorward <http://dorward.me.uk/>
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0