Mar/082
Instalando o IIS
Instalando o IIS não é tão dificil, você precisa dele fundamentalmente para rodar suas aplicações ASP ou ASP.NET (que não vem ao caso), lembrando que o IIS não vem configurando inicialmente...
Algumas imagens foram baixadas da internet para facilitar o entendimento, então vamos lá!!
Pegue o CD da sua versão do Windows XP, ou SP1 ou SP2, mais tem que ser a versão que está instalada no seu PC...
Quando colocar o CD do Windows, aparecerá a tela inicial de instalação, onde será escolhida a opção Instalar Componentes Opcionais do Windows.

Logo apois aparecerá uma lista de vários Componentes do Windows, procure o Internet Information Services (IIS) e marque ele.

Aparecerá uma página de auto instalação e logo após a tela de finalização avisando que o Assistente foi concluído!
Pronto o IIS já foi instalado no seu computador, mais para garanti vá em C:\Inetpub\wwwroot, verifique se existe a pasta Inetpub e dentro dela a wwwroot, caso tenha ótimo, agora é só ir no seu Navegador padrão e digitar http://localhost.
Caso apareça duas páginas referentes ao IIS está tudo funcionando como deveria ser!!!
Dica: Acesse também http://www.webly.com.br
Mar/080
Ver componentes instalados
-
-
<%@ Language="VBScript" %>
-
<% Option Explicit %>
-
<%
-
Dim theComponent(14)
-
Dim theComponentName(14)
-
-
' Lista dos Componentes
-
theComponent(0) = "ADODB.Connection"
-
theComponent(1) = "SoftArtisans.FileUp"
-
theComponent(2) = "AspHTTP.Conn"
-
theComponent(3) = "AspImage.Image"
-
theComponent(4) = "LastMod.FileObj"
-
theComponent(5) = "Scripting.FileSystemObject"
-
theComponent(6) = "SMTPsvg.Mailer"
-
theComponent(7) = "CDONTS.NewMail"
-
theComponent(8) = "Jmail.smtpmail"
-
theComponent(9) = "SmtpMail.SmtpMail.1"
-
theComponent(10) = "Persits.Upload.1"
-
theComponent(11) = "UnitedBinary.AutoImageSize"
-
theComponent(12) = "aspSmartUpload.SmartUpload"
-
theComponent(13) = "DAO.DBEngine.35"
-
-
' Apelido dos Componentes
-
theComponentName(0) = "ADODB"
-
theComponentName(1) = "SA-FileUp"
-
theComponentName(2) = "AspHTTP"
-
theComponentName(3) = "AspImage"
-
theComponentName(4) = "LastMod"
-
theComponentName(5) = "FileSystemObject"
-
theComponentName(6) = "ASPMail"
-
theComponentName(7) = "CDONTS"
-
theComponentName(8) = "JMail"
-
theComponentName(9) = "SMTP"
-
theComponentName(10) = "Persits Upload"
-
theComponentName(11) = "AutoImageSize"
-
theComponentName(12) = "ASpSmartUpload"
-
theComponentName(13) = "DBEngine"
-
-
Function IsObjInstalled(strClassString)
-
On Error Resume Next
-
IsObjInstalled = False
-
Err = 0
-
-
Dim xTestObj
-
Set xTestObj = Server.CreateObject(strClassString)
-
If 0 = Err Then IsObjInstalled = True
-
Set xTestObj = Nothing
-
Err = 0
-
End Function
-
%>
-
<table border="1" cellpadding="0" cellspacing="0" width="100%"><tbody>
-
<tr>
-
<td align="center"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2"><strong>Componentes
-
instalados:</strong></font></td>
-
</tr>
-
<tr>
-
<td>
-
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody>
-
<tr>
-
<td>" & vbCrLf
-
Response.Write "<strong>" & theComponentName(i) & "</strong>" & vbCrLf
-
Response.Write "</td>
-
</tr>
-
</tbody></table>
-
</td>
-
</tr>
-
</tbody></table>
-
Dica: Acesse também http://www.webly.com.br/
Feb/080
Conexões com os banco mais usados em ASP
-
<%'ACCESS - ODBC
-
Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\pasta\banco.mdb;Uid=Admin;Pwd=;
-
-
'-----------------------------------------------------------------------
-
'-----------------------------------------------------------------------
-
-
'Access 2007 - ACE OLEDB 12.0
-
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\pasta\banco.accdb;Persist Security Info=False;
-
-
'-----------------------------------------------------------------------
-
'-----------------------------------------------------------------------
-
-
'MySQL - ODBC
-
Driver={mySQL};Server=localhost;Option=16834;Database=Nome_Base;
-
-
'ou
-
Driver=MySQL ODBC 3.51 Driver;DataBase=Nome_Base;Server=localhost;Uid=;PassWord=;
-
-
'-----------------------------------------------------------------------
-
'-----------------------------------------------------------------------
-
-
'Oracle
-
Driver={Microsoft ODBC for Oracle};Server=localhost;Uid=;Pwd=;
-
-
'ou versão old
-
Driver={Microsoft ODBC Driver for Oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;
-
-
'-----------------------------------------------------------------------
-
'-----------------------------------------------------------------------
-
-
'SQL Server - ODBC
-
Driver={SQL Server};Server=localhost;Database=Nome_Base;Uid=;Pwd=;
-
-
'-----------------------------------------------------------------------
-
'-----------------------------------------------------------------------
-
-
'Postgre SQL
-
-
'Standard
-
Driver={PostgreSQL};Server=localhost;Port=5432;Database=Nome_Base;Uid=;Pwd=;
-
-
'ANSI
-
Driver={PostgreSQL ANSI};Server=localhost;Port=5432;Database=Nome_Base;Uid=;Pwd=;
-
-
'-----------------------------------------------------------------------
-
'-----------------------------------------------------------------------
-
-
'Firebird - ODBC - IBPhoenix Open Source
-
Driver=Firebird/InterBase(r) driver;Uid=;Pwd=;DbName=D:\FIREBIRD\banco\banco.fdb;%>
Dica: Acesse também: Webly
Feb/080
Imagens Aleatórias : Randomize
Mais um randomize de Imagens adaptado para as necessidade básicas
-
-
<%@ Language="VBScript" %>
-
<% Option Explicit %>
-
-
<%
-
Function RandomDeImagens(strPath,strDefault)
-
On Error Resume Next
-
Randomize Timer
-
-
Dim ObjDeFSO, objFolder, ObjDaPasta, ObjPasta02
-
Dim StrPastas, StrImagens, StrBase, StrPasta
-
Const strValid = ".gif.jpg.png"
-
-
If Right(strPath,1) <> Chr(47) Then strPath = strPath & Chr(47)
-
-
StrBase = Server.MapPath(strPath)
-
Set ObjDeFSO = Server.CreateObject("Scripting.FileSystemObject")
-
-
Set objFolder = ObjDeFSO.GetFolder(StrBase)
-
Set ObjDaPasta = objFolder.Files
-
-
For Each ObjPasta02 In ObjDaPasta
-
StrPasta = LCase(ObjPasta02.Name)If Instr(strValid,Right(StrPasta,4)) Then
-
StrPastas = StrPastas & StrPasta & VbTab
-
End If
-
Next
-
-
StrImagens = Split(StrPastas,VbTab)
-
-
If UBound(StrImagens) > 1 Then
-
RandomDeImagens = strPath & StrImagens(Int(Rnd(1)*UBound(StrImagens)))
-
Else
-
RandomDeImagens = strDefault
-
End If
-
-
End Function
-
%>
-
<p align="center"> </p>
-
-
<center>
-
<table border="1" bordercolor="#000000"><tbody>
-
<tr>
-
<td bgcolor="#ffffff">
-
<!-- a pasta developercenter é relacionanda a sua pasta principal -->
-
<img src="<%=RandomDeImagens%>" />
-
</td>
-
</tr>
-
</tbody></table>
-
</center>


