ASP. Pagine attive per Windows

Size: px
Start display at page:

Download "ASP. Pagine attive per Windows"

Transcription

1 ASP Pagine attive per Windows

2 ASP Server-side scripting technology di Microsoft per creare web pages interattive Una pagina asp è una pagina contenente HTML (ma non solo) inframmezzato da script tag da eseguire sul server Possibilità di usare oggetti COM e ADO di Windows e di manipolare documenti XML Master in web technology e security - Guido Boella 2

3 ASP ASP per IIS e PWS di Microsoft, ma anche altre piattaforme (Chili!ASP di ChiliSoft) Consente facile collegamento con ADO Il server riceve una richiesta dal client che riguarda una pagina.asp La pagina (date.asp) contiene un documento html inframmezzato con del codice (VBscript, javascript) Master in web technology e security - Guido Boella 3

4 Prima di inviare il documento, il server esegue lui stesso le parti di programma in un thread interno Il codice genera in output parte del documento che viene sostituito agli script tag Parametri ed output gestiti come oggetti da VBscript Introduce il concetto di sessione (ma utilizza comunque i cookies) Master in web technology e security - Guido Boella 4

5 ISAPI (internet server api) Permette legame con dynamic link libraries (DLL) che sono eseguite nello spazio di memoria del server ISAPI filter: permette il controllo delle informazioni dal client al server (per sicurezza) e viceversa Una pagina trovata dal server viene interpretata dal filtro ISAPI asp.dll che ne cambia il contenuto Master in web technology e security - Guido Boella 5

6 Pagine attive - tread del server Altre applicazioni ADO CLIENT (UA,browser) request response Web server (Apache, IIS).html ISAPI filter programmi Macchina del server Master in web technology e security - Guido Boella 6

7 CONFIGURAZIONE PWS Master in web technology e security - Guido Boella 7

8 DIRECTORY VIRTUALI Master in web technology e security - Guido Boella 8

9 Logfile [02/Aug/2000:22:25: ] "GET /Default.asp HTTP/1.1" [02/Aug/2000:22:25: ] "GET /IISSamples/Default/IE.GIF HTTP/1.1" [02/Aug/2000:22:27: ] "GET /asp/pro ASP 3.0/Chapter 08/Connection/Connection.asp? [Microsoft][Driver_ODBC_Micros oft_access_97]_impossibile_trovare_il_file_'(sconosciuto)'. HTTP/1.1" [02/Aug/2000:23:40: ] "GET /ASP/Pro ASP 3.0/Chapter 10/publishers.xml HTTP/1.1" [02/Aug/2000:23:45: ] "GET /ASP/Pro ASP 3.0/Chapter 11/RecordsetToList.xsl HTTP/1.1" [03/Aug/2000:00:31: ] "GET /asp/pro ASP 3.0/Chapter 08/Recordsets/Recordset.asp?Action=Fields HTTP/1.1" Master in web technology e security - Guido Boella 9

10 VBscript Il linguaggio per ASP

11 VBscript Sottoinsieme del linguaggio Visual Basic di Microsoft: senza tipi Linguaggio interpretato senza compilazione precedente per maggiore modificabilità Orientato agli oggetti, ma senza classi Un solo tipo di dato, implicito: Variant il tipo della variabile dipende dal contesto: string, integer, object, currency, date, boolean Operatori per conversione di tipo esplicita Master in web technology e security - Guido Boella 11

12 Variabili Dichiarazione implicita o esplicita di variabili: Dim x, y, z (return è fine espressione) Assegnazione x=1 w="stringa" (dichiarazione implicita) Array: Dim v(9), k(10,1) (v ha 10 indici, ) ReDim v(20) Redim preserve v(30) Master in web technology e security - Guido Boella 12

13 Stringhe Dim stra, strx strx = "una" stra = "sono" & strx & "stringa" & "spezzata _ e molto lunga" Master in web technology e security - Guido Boella 13

14 Subroutine e funzioni Come in Pascal, si distinguono dalle procedure le funzioni che restituiscono un valore Il valore di ritorno va assegnato ad una variabile speciale che ha lo stesso nome della funzione (come in Pascal) Parametri passati per call by reference Variabili locali hanno la durata della procedura e sono solo visibili in essa Master in web technology e security - Guido Boella 14

15 'subroutine Sub scrivi (strx, stry) dim strz strz = strx & stry response.write(strz) End Sub 'funzione Function square (intx) square = intx * intx End Function Master in web technology e security - Guido Boella 15

16 Strutture di controllo If condition Then statement If condition Then statement statements... Endif METAVARIABILE! BLOCCO! If condition Then statements Else statements Endif Master in web technology e security - Guido Boella 16

17 Select Case expression Case value statements... Case value statements End Select Select Case strop Case "+" x = x + y Case "-" x = x - y End Select Master in web technology e security - Guido Boella 17

18 For var = start To finish [Step value] statements Next For intx = 1 to 10 Step 2 Response.write(intX) Next output Master in web technology e security - Guido Boella 18

19 Do While condition statements Loop (While o Until) intx = 3 Do While intx > 0 Response.write(intX) intx = intx + 1 Loop output Master in web technology e security - Guido Boella 19

20 HTML fa parte del programma <html><body> <% Dim i for i = 1 to 10 step 2 %> <BR>passo <%= i %> <% next %> </body></html> Master in web technology e security - Guido Boella 20

21 Script per Client (IE5) <html><body> <script language="vbscript"> <!-- 'commento comandi VBscript --> </script>... </body></html> VBscript NON E' NECESSARIAMENTE IL LINGUAGGIO DI DEFAULT COMMENTO HTML PER COMPATIBILITA' Master in web technology e security - Guido Boella 21

22 Script per server <html><body> <script language="vbscript" runat="server"> Comandi VBscript </script> <p> <% Comandi VBscript %> <p> <% Comandi VBscript %> Sono le <%= time %> </body></html> LO SCRIPT E' PER IL SERVER IL TESTO PRODOTTO SOSTITUISCE LO SCRIPT TAG INTERPRETATO SOLO DAL SERVER TAG CHE RIPORTA VALORE DI UNA VARIABILE Master in web technology e security - Guido Boella 22

23 Non spezzare i tag... <html><body> <% Comandi VBscript %> <p><b>testo html</b> <% Comandi VBscript %> </body></html> 2 CONTEXT SWITCH <html><body> <% Comandi VBscript Response.write("<p><b>Testo html</b>") Comandi VBscript %> </body></html> TESTO HTML SCRITTO DA VBscript Master in web technology e security - Guido Boella 23

24 Inclusione script <html><body> <script language="vbscript" runat="server" src="/aspscript/script.inc" ></script> <p> <!--# include file="/aspscript/script1.inc" --> <p> <% response.write square(5) %> </body></html> SETTA LINGUAGGIO DI DEFAULT INCLUSIONE SSI STYLE: SSI PROCESSATE PRIMA DI ASP Master in web technology e security - Guido Boella 24

25 Efficienza e sicurezza Con Windows2000 i file html possono essere denominati.asp: prima di parsificarli o eseguirli si controlla la presenza del tag <% I file asp vengono compilati e mantenuti nella cache per essere eseguiti fino a modifiche I COM creati in pagina asp possono essere "run out-of-process" Asp script e client-side script possono essere codificati con BASE64 encription. Lo script engine li decodifica runtime Master in web technology e security - Guido Boella 25

26 Oggetti intriseci di ASP Request: mette a disposizioni informazioni mandate da client tramite metodi e variabili: HTTP metavariables cookies query string appese a URL certificati SSL Response: informazioni mandate al client: header http cookies output (message body): Response.write (Sostituiscono stdin e stdout di CGI) Master in web technology e security - Guido Boella 26

27 Application: creato al caricamento di asp.dll con la prima richiesta. Contiene variabili e oggetti globali accessibili ad ogni script Session: oggetto associato a ciascun utente al primo collegamento. Contiene le informazioni accessibili a tutte le pagine visitate da un dato utente. Timeout stabilisce la sua durata dopo ultimo collegamento. Server: offre metodi per creare nuovi processi e oggetti COM (e ADO) ASPError: informazione su ultimo errore Master in web technology e security - Guido Boella 27

28 Collection di Request Query string: coppie attributo-valore inviate da form con metodo GET (URL munging) Form: coppie attributo valore inviate da form con metodo POST Cookies ServerVariables: metavariabili HTTP ClientCertificate ESEMPIO Master in web technology e security - Guido Boella 28

29 Collection <TABLE CELLPADDING=0 CELLSPACING=0> <% For Each keyitem In Request.servervariables() stritemvalue = Request.servervariables(keyItem) Response.Write "<TR><TD>" & keyitem & " = " & stritemvalue & "</TD></TR>" Next %> </TABLE> Master in web technology e security - Guido Boella 29

30 Query string What is the capital city of Sweden? <BR> <A HREF="q2answer.asp?answer=Reykavik&rw=wrong">Reykavik</A> <A HREF="q2answer.asp?answer=Stockholm&rw=right">Stockholm</A> <% Response.Write("Your answer was " & Request.QueryString("answer") & "...<BR>") If Request.QueryString("rw")="right" Then Response.Write("That's the correct answer!") Else Response.Write("No, that's the wrong answer.") End If %> Master in web technology e security - Guido Boella 30

31 Form <% For Each Item in Request.Form Response.Write("For element '" & Item &_ "' you've entered the value '" & Request.Form(Item) &_ "'<BR>") Next %> Master in web technology e security - Guido Boella 31

32 Multivalue form <FORM NAME="MultiChoice" ACTION="DealWithForm3.asp" METHOD="POST"> <H2>Which continents have you visited? </H2><BR> <INPUT NAME="Cnent" TYPE=CHECKBOX VALUE="Africa"> Africa <BR> <INPUT NAME="Cnent" TYPE=CHECKBOX VALUE="North America"> North America <BR> <% Response.Write("You've really been to all these places?" & "<BR>") For i = 1 To Request.Form("Cnent").Count Response.Write (Request.Form("Cnent")(i) & "<BR>") Next Response.Write("<BR>" & "Impressive...") End If %> Master in web technology e security - Guido Boella 32

33 Collection e variabili di Response Cookies: le coppie attributo valore inviate dal server allo user agent client Buffer: output bufferizzato fino a flush (per gestire errori runtime dello script) Content-type = mime-type ("text/xml") CacheControl = public o private Expires minuti (per proxy servers) PICS("...") (per filtrare contenuto pagina) status = messaggio (200 OK, 404 not found) Master in web technology e security - Guido Boella 33

34 Metodi di Response AddHeader("name", "content") va usato prima di spedire il contenuto della pagina End(), Flush() Redirect("url") 303 Object Moved url Write(string) BinaryWrite(Array) per inviare immagini senza conversione di testo Master in web technology e security - Guido Boella 34

35 <FORM ACTION="show.asp"METHOD="POST"> firstname: <INPUT TYPE="TEXT" NAME="first"> lastname: <INPUT TYPE="TEXT" NAME="last"> <INPUT TYPE="SUBMIT"></FORM> <% firstname = Request.form("first") lastname = Request.form("last") Response.write(Request.form) For each objitem in Request.form Response.write objitem & ":" & Request.form(objitem) For intloop = 1 to Request.form.count Response.write Request.form(intloop) Next %> first=guido&last=boella... FORM HTML show.asp OUTPUT Master in web technology e security - Guido Boella 35

36 Cookies Vanno creati prima di creare output in quanto si trovano nell'header intcount = Request.Cookies("count") Response.Cookies("count") = intcount + 1 Response.Cookies("count").domain="di.unito.it" Response.Cookies("count").domain="/docsrv/guido/" Response.Cookies("count").expires = #date# Response.Write "Hai visitato questo sito " & _ intcount & "volte" VIRTUAL PATH Master in web technology e security - Guido Boella 36

37 <FORM ACTION=<% =Request.ServerVariables("SCRIPT_NAME") %> METHOD="GET"> login: <INPUT TYPE="TEXT" NAME="login" VALUE = <% = Request.QueryString("login") %> SCRIPT passwd: <INPUT TYPE="TEXT" NAME="passwd"> <INPUT TYPE="SUBMIT"></FORM> <% login = Request.form("login") passwd = Request.form("passwd") Response.Cookies("loginInfo")("login")= login Response.Cookies("loginInfo")("passwd")= passwd %> INDIRIZZO DELLO Master in web technology e security - Guido Boella 37

38 SECURE SOCKET LAYER REDIRECT (PORT 443) <% if Request.ServerVariables("SERVER_PORT") = 443 THEN Response.Redirect("/securepages/default.asp") else Response.Redirect("/normalpages/default.asp") %> Genera un messaggio HTTP/ Object Moved location /securepages/default.asp Stesso effetto su lato client <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=/securepages/default.asp"> Master in web technology e security - Guido Boella 38

39 L'oggetto Application METODI E VARIABILI: Contents: collection di variabili (application("nomevar")) lock(), unlock(): solo una pagina.asp può essere eseguita per impedire interferenze EVENTI: onstart: subroutine eseguita alla creazione dell'oggetto Application onend: eseguita alla chiusura File di inizializzazione: GLOBAL.ASA Master in web technology e security - Guido Boella 39

40 L'oggetto Session METODI e VARIABILI: Contents: collection di variabili (session("nomevar")) Timeout: durata session; default 10 min. EVENTI: onstart: subroutine eseguita alla creazione dell'oggetto Session onend: eseguita alla chiusura File di inizializzazione: GLOBAL.ASA Master in web technology e security - Guido Boella 40

41 Global.asa <SCRIPT LANGUAGE=VBScript RUNAT=Server> Sub Application_OnStart Application("visits") = 0 Application("Active")= 0 End Sub Sub Application_OnEnd End Sub CONTINUA NELLA STESSA DIRECTORY DI GLOBAL.ASA VARS.ASP There have been <B><%=Session("VisitorID")%></B> total visits to this site. <BR>You are one of <B> <%=Application("Active")%></B> active visitors. <BR>Your session started at <%= Session("Start") %> Master in web technology e security - Guido Boella 41

42 Sub Session_OnStart Session.Timeout = 1 Session("Start")=Now Application.lock Application("visits")= Application("visits") + 1 inttotal_visitors = Application("visits") Session("VisitorID") = inttotal_visitors Application("Active")= Application("Active") + 1 Application.unlock End Sub Sub Session_OnEnd Application.lock Application("Active")= Application("Active") - 1 Application.unlock End Sub </SCRIPT> Master in web technology e security - Guido Boella 42

43 SessionID Asp mantiene automaticamente la gestione delle Session grazie ai Cookies Se non è attiva la ricezione dei Cookies nel browser, la Session non funziona Il server assume che richieste HTTP con stesso sessionid arrivino dallo stesso utente Il Cookie è generato in maniera casuale per evitare interferenze: può essere intercettato e sfruttato da hacker per spacciarsi per l'utente Connessione SSL permette il criptaggio dell'identificatore Session Master in web technology e security - Guido Boella 43

44 Il cookie sessionid viene inviato solo al momento di una assegnazione alla collection session (e.g., session("user")="guido"): ma senza buffering l'header è inviato senza id HTTP_COOKIE: ASPSESSIONIDFFFESKDR=FMCLMFDAKHFDCGHDCCPAPOCC; La session espira in base al valore di session.timeout (default=20min) o alla chiusura del browser (cookie ha expires = 0) La session è associata al singolo server: problemi con le server farm; violo load balance inviando stesso sessionid a stessa macchina Master in web technology e security - Guido Boella 44

45 Esempio session <% response.expires = DISABILITO CACHE if NOT request.querystring("user")="" then session.timeout=1 session("user")=request.querystring("user") response.write "You are " & session("user") & " " response.write "<br><a href=" & request.servervariables("script_name") & ">Go back to start page</a>" end if if session("user") = "" then %> <form method="get" action="<%= request.servervariables("script_name") %>"> <input type=text name="user">what's your name?</input></form><% else response.write "<Br>Hello " & session("user") end if %> Durata session 1min Master in web technology e security - Guido Boella 45

46 L'oggetto Server METODI e VARIABILI: createobject("id"): crea istanza di oggetto e restituisce reference (set). id è cslid "{RB23...}" o Progid: "ADODB.Connection" (vendor.component) Execute("url"), Transfer("url"): trasferisce il controllo a script url assieme al contesto (e ritorna) GetLastError(): reference ad errore File di errore è chiamato tramite server.transfer: C: WINDOWS HELP common 400.htm ecc. Per eliminare un oggetto x e recuperare la memoria: set x = nothing Master in web technology e security - Guido Boella 46

47 Counter <% Dim objfso, objcountfile ' object vars for FSO and File Dim strcountfilename ' filename of count text file Dim icount ' count variable strcountfilename=server.mappath(request.servervariables("script_name ") & ".cnt") Set objfso = Server.CreateObject("Scripting.FileSystemObject") ' Open the file as a text stream (1 = ForReading, True = Create) Set objcountfile = objfso.opentextfile(strcountfilename, 1, True) If Not objcountfile.atendofstream Then icount = CLng(objCountFile.ReadAll) Else icount = 0 End If objcountfile.close CONTINUA Master in web technology e security - Guido Boella 47

48 Set objcountfile = Nothing icount = icount + 1 Set objcountfile = objfso.createtextfile(strcountfilename, True) objcountfile.write icount objcountfile.close Set objcountfile = Nothing Set objfso = Nothing Response.Write "This page has been visited by " & icount _ & " people" %> Master in web technology e security - Guido Boella 48

49 Script di benvenuto <% Dim dhour dhour = Hour(Now) If dhour < 12 Then Response.Write "Good morning!" ElseIf dhour < 17 Then Response.Write "Good afternoon!" Else Response.Write "Good evening!" End If %> We hope you are enjoying our sample code.<br> <BR> If you are curious it is currently <%= Time() %> on <%= Date() %>.<BR> Master in web technology e security - Guido Boella 49

50 Time counter <% If Request.QueryString("time") = "" Then %>You... <BR> <% Else difftime = DateDiff("s", Request.QueryString("time"), Now()) %> You spent <%= difftime %> seconds.<br> <% End If %><BR><A HREF="time.asp?time=<%= Server.URLEncode(Now())%>">How long have I spent on this page?</a><br> <% totaltime = session("time") session("time") = difftime + totaltime application.lock atotaltime = application("atime") application("atime") = difftime + atotaltime application.unlock %><BR>You have spent <%= session("time") %> seconds during this session. Master in web technology e security - Guido Boella 50

51 File System I comandi per gestire i files sono metodi dell'oggetto "Scripting.FileSystemObject" Per manipolare files occorre quindi creare una istanza dell'oggetto file system Metodi: opentextfile(nomefile, r/w, create): apre il file nomefile ("c: asp file.txt") creando un oggetto stream corrispondente. r/w: forreading=1, forwriting=2, forappending=8. create è true o false createtextfile(nomefile, create): crea lo stream del file nomefile Master in web technology e security - Guido Boella 51

52 FileSystemObject Metodi: fileexists(nomefile): controlla esistenza di un file deletefile(nomefile): cancella il file Master in web technology e security - Guido Boella 52

53 Oggetto stream Uno stream è creato dal metodo di apertura file del filesystemobject o da openastextstream di un oggetto file Variabili: atendofstream: vero se lo stream è vuoto o è stato letto tutto Metodi: readall, readline: lettura file o linea write stringa: scrittura writeline stringa: scrittura con a capo close(): chiusura stream Master in web technology e security - Guido Boella 53

54 Stream Uno stream è un flusso di caratteri leggibili o scrivibili Con ADO2.1 esistono solo stream corrispondenti a files Con ADO2.5 si possono usare stream in memoria senza un file corrispettivo Gli oggetti Request e Response diventano stream di input e output Master in web technology e security - Guido Boella 54

55 Oggetto file Un oggetto file è creato con il metodo getfile(nomefile) dell'oggetto filesystemobject L'oggetto file contiene le proprietà del file e permette di accedere al contenuto creando una stream con openastextfile Variabili: name, datelastmodified, type Metodi openastextfile(): crea stream Master in web technology e security - Guido Boella 55

56 Gestione file <% Dim objfso Dim objfile Dim datemodified Set objfso = Server.CreateObject("Scripting.FileSystemObject") Set objfile = objfso.getfile(server.mappath("modified.asp")) datemodified = objfile.datelastmodified %> This file was modified on <%= datemodified %> or <% FormatDateTime(dateModified, 1) %> <% Set objfile = Nothing Set objfso = Nothing %> Master in web technology e security - Guido Boella 56

57 Text file <!--METADATA TYPE="TypeLib" FILE="c: Programmi File comuni System ADO MSADOr15.dll"--> <% strtextfile = Server.MapPath("MyFile.txt") Set objfso = Server.CreateObject("Scripting.FileSystemObject") If Len(Request.Form("cmdUpdate")) Then strnewtext = Request.Form("txtContent") arrlines = Split(strNewText, vbcrlf) Set objtstream = objfso.opentextfile(strtextfile, 2) For intline = 0 To UBound(arrLines) strthisline = arrlines(intline) If Len(strThisLine) > 4 Then objtstream.writeline Mid(strThisLine, 6) Next objtstream.close End If Master in web technology e security - Guido Boella 57

58 <FORM ACTION="<% = Request.ServerVariables("SCRIPT_NAME") %>" METHOD="POST"> The contents of the disk file <B><% = strtextfile %></B> are:<p> <TEXTAREA NAME="txtContent" ROWS="10" COLS="50" > <% Set objtstream = objfso.opentextfile(strtextfile, 1) Do While Not objtstream.atendofstream intlinenum = objtstream.line strlinenum = Right("00" & CStr(intLineNum), 3) strlinetext = objtstream.readline Response.Write strlinenum & ": " & strlinetext & vbcrlf Loop objtstream.close %></TEXTAREA><P> <INPUT TYPE="SUBMIT" NAME="cmdUpdate" VALUE=" "> </FORM></BODY></HTML>s Master in web technology e security - Guido Boella 58

59 Oggetto Dictionary Una tabella associativa in ASP è una istanze dell'oggetto Dictionary: "Scripting.Dictionary" Variabili: keys: restituisce l'array delle chiavi items: restituisce l'array dei valori count: numero elementi della tabella Master in web technology e security - Guido Boella 59

60 Oggetto Dictionary Metodi: item("chiave"): il valore associato alla chiave. Abbreviazione: ("chiave") add chiave, valore: inserisce la coppia chiave-valore nella tabella exists("chiave"): vero se alla chiave è associato un valore nella tabella Master in web technology e security - Guido Boella 60

61 Oggetto Dictionary <% Set objdictionary = CreateObject("Scripting.Dictionary") objdictionary.add "Apple", "Red" objdictionary.add "Lemon", "Yellow" strvalue = objdictionary.item("apple") if objdictionary.exists("apple") then objdictionary.item("apple") = "Green" end if arkeys = objdictionary.keys for i = 0 to objdictionary.count -1 Response.Write "<BR>Key = " & arkeys(i) & " -- Value = " & objdictionary.item(arkeys(i)) next aritems = objdictionary.items %> Master in web technology e security - Guido Boella 61

62 Gestione directory <% strpathinfo = Request.ServerVariables("PATH_INFO") strphysicalpath = Server.MapPath(strPathInfo) Set objfso = CreateObject("Scripting.FileSystemObject") set objfile = objfso.getfile(strphysicalpath) set objfolder = objfile.parentfolder set objfoldercontents = objfolder.files%><table><% For Each objfileitem in objfoldercontents %> <TR><TD><A HREF="<%= objfileitem.name %>"> <%= objfileitem.name %></A></TD> <TD><%= objfileitem.type %></TD> <TD><%= objfileitem.size %></TD> <TD><%= objfileitem.datelastmodified %></TD></TR> <% Next %> Master in web technology e security - Guido Boella 62

63 VBscript non e' l'unico linguaggio LANGUAGE = PerlScript %> <html> <BODY> <BODY BGCOLOR=#FFFFFF> <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0> <TR VALIGN=TOP ><TD WIDTH=400> </TD></TR></TABLE> <% for ($i = 3; $i < 8; $i++) { %> <font size=<%= $i %>> "Hello World!" </font> <BR> <% } %> </BODY></HTML> Master in web technology e security - Guido Boella 63

64 VBscript non e' l'unico linguaggio LANGUAGE = Javascript %> <html> <BODY> <BODY BGCOLOR=#FFFFFF> <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0> <TR VALIGN=TOP ><TD WIDTH=400> </TD></TR></TABLE> <% for (i = 3; i < 8; i++) { %> <font size=<%= i %>> "Hello World!" </font> <BR> <% } %> </BODY></HTML> Master in web technology e security - Guido Boella 64

65 Negozio elettronico Master in web technology e security - Guido Boella 65

66 Negozio elettronico Master in web technology e security - Guido Boella 66

67 Shopping cart <% ' Sub AddItemToCart(iItemID, iitemcount) If dictcart.exists(iitemid) Then dictcart(iitemid) = dictcart(iitemid) + iitemcount Else dictcart.add iitemid, iitemcount End If Response.Write iitemcount & " of item # " & iitemid & " have been added to your cart.<br><br>" & vbcrlf End Sub Master in web technology e security - Guido Boella 67

68 Sub RemoveItemFromCart(iItemID, iitemcount) If dictcart.exists(iitemid) Then If dictcart(iitemid) <= iitemcount Then dictcart.remove iitemid Else dictcart(iitemid) = dictcart(iitemid) - iitemcount End If Response.Write iitemcount & " of item # " & iitemid & " have been removed from your cart.<br><br>" & vbcrlf Else Response.Write "Couldn't find any of that item your cart.<br><br>" & vbcrlf End If End Sub Master in web technology e security - Guido Boella 68

69 Sub ShowItemsInCart() Dim Key Dim aparameters ' as Variant (Array) Dim stotal, sshipping %> <TABLE Border=1 CellPadding=3 CellSpacing=1> <TR><TD>Item #</TD>... </TR> <% stotal = 0 For Each Key in dictcart aparameters = GetItemParameters(Key) %> <TR><TD ALIGN="Center"><%= Key %></TD> <%= aparameters(1) %><%= dictcart(key) %> <A HREF="./shopping.asp?action=del&item=<%= Key%> &count=1">remove One</A> &nbsp <TD>$<%= aparameters(2) %></TD> <TD>$<%=FormatNumber(dictCart(Key) * CSng(aParameters(2)),2) %></TD> </TR> <% stotal = stotal + (dictcart(key) * CSng(aParameters(2))) Next Master in web technology e security - Guido Boella 69

70 <% stotal = stotal + (dictcart(key) * CSng(aParameters(2))) Next If stotal <> 0 Then sshipping = 7.5 Else sshipping = 0 End If stotal = stotal + sshipping %> $<%= FormatNumber(sShipping,2) $<%= FormatNumber(sTotal,2) %></TD></TR></TABLE> <% End Sub Master in web technology e security - Guido Boella 70

71 Sub ShowFullCatalog() iitemcount = 3 %> <TABLE Border=1 CellPadding=3 CellSpacing=1> <TR><TD>Image</TD> </TR> <% For I = 1 to iitemcount aparameters = GetItemParameters(I) %> <TR> <TD><IMG SRC="<%= aparameters(0) %>"></TD> <TD><A HREF="./shopping.asp?action=add&item=<%= I %>&count=1">add this to my cart!</a></td> </TR><% Next %></TABLE><% End Sub Master in web technology e security - Guido Boella 71

72 GetItemParameters(iItemID) Dim aparameters ' 3 stringhe image path, description, price Select Case iitemid Case 1 aparameters = Array("./images/shop_shirt.gif", "ASP T-Shirt", "15.00") Case 2 aparameters = Array("./images/shop_kite.gif", "ASP Kite", "17.50") Case 3 aparameters = Array("./images/shop_watch.gif", "ASP Watch", "35.00") End Select GetItemParameters = aparameters End Function %> Master in web technology e security - Guido Boella 72

73 <% If IsObject(Session("cart")) Then Set dictcart = Session("cart") Else Set dictcart = Server.CreateObject("Scripting.Dictionary") End If saction = CStr(Request.QueryString("action")) iitemid = CInt(Request.QueryString("item")) iitemcount = CInt(Request.QueryString("count")) Select Case saction Case "add" AddItemToCart iitemid, iitemcount ShowItemsInCart %> <A HREF="./shopping.asp?action=">Continue Looking</A> <A HREF="./shopping.asp?action=checkout>Checkout"></A> Master in web technology e security - Guido Boella 73

74 <% Case "del" RemoveItemFromCart iitemid, iitemcount ShowItemsInCart Case "viewcart" ShowItemsInCart Case "checkout" PlaceOrder Case Else ' Shop ShowFullCatalog End Select ' Return cart to Session for storage Set Session("cart") = dictcart %> Master in web technology e security - Guido Boella 74

75 SQL Comunicare nel linguaggio dei database

76 SQL: Structured Query Language (SeQueL) Linguaggio per l'interazione con database tramite ActiveX Data Object (ADO) Operazioni: leggere informazioni selezionare informazioni cambiare e cancellare dati (modificare la struttura del database) Ispirato al linguaggio naturale Sintassi: keyword arguments keyword arguments... Master in web technology e security - Guido Boella 76

77 TABELLA FIELD Category ID Room ID Description Manufacturer Sports Equipment Bedroom Exercise Bike Adventure Works Furniture Living Room Gray three-cushion sofa Fitch & Mather Sports Equipment Garage Mountain Bike Crawford & Bicycles Electronic Den Computer Bits, Bytes & Chips, Inc. Tool Garage Cordless drill ProElectron, Inc. Furniture Dining Room Ebony inlaid table unknown Tool Garage Table saw Shear Savvy Collectible Den Baseball card collection Jewelry Bedroom Pearl neclace Electronic Living Room Audio-Visual Receiver AVTech RECORD Furniture Living Room Gray three-cushion sofa Fitch & Mather Master in web technology e security - Guido Boella 77

78 Select Reperimento dati specificando: tabella colonne tabella ordine restrizioni SELECT * FROM household inventory (prendi tutti (*) i record (con tutte le colonne) dalla tabella household invenctory) Master in web technology e security - Guido Boella 78

79 Selezione campi (colonne) SELECT description, manufacturer FROM household inventory Selezione record room id diventa roomid SELECT roomid, description FROM household inventory WHERE roomid = livingroom SELECT roomid, description FROM household inventory WHERE date BETWEEN #20/01/90# AND #01/03/99# SELECT roomid, description FROM household inventory WHERE roomid LIKE '%room' Master in web technology e security - Guido Boella 79

80 Ordinamento del recordset SELECT roomid, description FROM household inventory ORDER BY roomid SELECT roomid, description FROM householdinventory ORDER BY date DESC Unione tabelle: JOIN SELECT a.roomid AS roomid, b.manufacturer AS manufacturer FROM a INNER JOIN b ON a.description = b.description Master in web technology e security - Guido Boella 80

81 STESSO ORDINE CAMPI DEI VALORI Inserimento di un record INSERT INTO inventory (roomid, description, manufacturer,...) VALUES ('bedroom', 'lamp', 'Brigthlight inc.',...) Modifica di (un) record specifici(o): UPDATE inventory SET manufacturer='darklight' WHERE description='lamp' AND roomid='bedroom' (modifica tutti i record che matchano i criteri) Master in web technology e security - Guido Boella 81

82 Category ID Room ID Description Manufacturer Sports Equipment Bedroom Exercise Bike Adventure Works Furniture Living Room Gray three-cushion sofa Fitch & Mather Sports Equipment Garage Mountain Bike Crawford & Bicycles Electronic Den Computer Bits, Bytes & Chips, Inc. Tool Garage Cordless drill ProElectron, Inc. Furniture Dining Room Ebony inlaid table unknown Tool Garage Table saw Shear Savvy Collectible Den Baseball card collection Jewelry Bedroom Pearl neclace Electronic Living Room Audio-Visual Receiver AVTech Description Manufacturer Exercise Bike Adventure Works Gray three-cushion sofa Fitch & Mather Mountain Bike Crawford & Bicycles Computer Bits, Bytes & Chips, Inc. Cordless drill ProElectron, Inc. Ebony inlaid table unknown Table saw Shear Savvy Baseball card collection Pearl neclace Audio-Visual Receiver AVTech SELECT description, manufacturer FROM household inventory SELECT room id, description FROM household inventory WHERE room id = living room Room ID Living Room Living Room Description Gray three-cushion sofa Audio-Visual Receiver Master in web technology e security - Guido Boella 82

Passare a Sql Server Compact : come leggere dati da Mdb, Xls, Xml, Dbf, Csv, senza utilizzare Microsoft Jet Database Engine 4.0

Passare a Sql Server Compact : come leggere dati da Mdb, Xls, Xml, Dbf, Csv, senza utilizzare Microsoft Jet Database Engine 4.0 Passare a Sql Server Compact : come leggere dati da Mdb, Xls, Xml, Dbf, Csv, senza utilizzare Microsoft Jet Database Engine 4.0 Qualche anno fa ho sviluppato un' applicazione in VB6 per l' ottimizzazione

More information

Tecnologia e Applicazioni Internet 2008/9

Tecnologia e Applicazioni Internet 2008/9 Tecnologia e Applicazioni Internet 2008/9 Lezione 4 - Rest Matteo Vaccari http://matteo.vaccari.name/ matteo.vaccari@uninsubria.it What is REST? Roy Fielding Representational State Transfer Roy T. Fielding

More information

Misurazione performance. Processing time. Performance. Throughput. Francesco Marchioni Mastertheboss.com Javaday IV Roma 30 gennaio 2010

Misurazione performance. Processing time. Performance. Throughput. Francesco Marchioni Mastertheboss.com Javaday IV Roma 30 gennaio 2010 Misurazione performance Processing time Performance Throughput Processing time Network Network DB Processing time Throughput Quantità di dati trasmessi x secondo Tuning Areas Tuning Java Virtual Machine

More information

Integrating Web & DBMS

Integrating Web & DBMS Integrating Web & DBMS Gianluca Ramunno < ramunno@polito.it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica Open Database Connectivity

More information

ASP Tutorial. Application Handling Part I: 3/15/02

ASP Tutorial. Application Handling Part I: 3/15/02 ASP Tutorial Application Handling Part I: 3/15/02 Agenda Managing User Sessions and Applications Section I Groundwork for Web applications Topics: Asp objects, IIS, global.asa Section II Application Objects

More information

From Open Data & Linked Data to Ontology. example: http://www.disit.dinfo.unifi.it/siimobility.html

From Open Data & Linked Data to Ontology. example: http://www.disit.dinfo.unifi.it/siimobility.html From Open Data & Linked Data to Ontology example: http://www.disit.dinfo.unifi.it/siimobility.html 1 From Open Data to Linked Data To map Open Data into Linked Data: 1. Map the data to RDF: selecting/writing

More information

OVERVIEW OF ASP. What is ASP. Why ASP

OVERVIEW OF ASP. What is ASP. Why ASP OVERVIEW OF ASP What is ASP Active Server Pages (ASP), Microsoft respond to the Internet/E-Commerce fever, was designed specifically to simplify the process of developing dynamic Web applications. Built

More information

What is AJAX? Ajax. Traditional Client-Server Interaction. What is Ajax? (cont.) Ajax Client-Server Interaction. What is Ajax? (cont.

What is AJAX? Ajax. Traditional Client-Server Interaction. What is Ajax? (cont.) Ajax Client-Server Interaction. What is Ajax? (cont. What is AJAX? Ajax Asynchronous JavaScript and XML Ronald J. Glotzbach Ajax is not a technology Ajax mixes well known programming techniques in an uncommon way Enables web builders to create more appealing

More information

Source code security testing

Source code security testing Source code security testing Simone Riccetti EMEA PSS Security Services All information represents IBM's current intent, is subject to change or withdrawal without notice, and represents only IBM ISS goals

More information

JavaScript: Client-Side Scripting. Chapter 6

JavaScript: Client-Side Scripting. Chapter 6 JavaScript: Client-Side Scripting Chapter 6 Textbook to be published by Pearson Ed 2015 in early Pearson 2014 Fundamentals of Web http://www.funwebdev.com Development Section 1 of 8 WHAT IS JAVASCRIPT

More information

Versione: 2.1. Interoperabilità del Sistema di Accettazione di SPT

Versione: 2.1. Interoperabilità del Sistema di Accettazione di SPT Versione: 2.1 Interoperabilità del Sistema di Accettazione di SPT INDICE 1 Definizione del tracciato di scambio... 2 1.1.1 XML SCHEMA...... 3 1 Definizione del tracciato di scambio Il documento riporta

More information

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007 WWW World Wide Web Aka The Internet dr. C. P. J. Koymans Informatics Institute Universiteit van Amsterdam November 30, 2007 dr. C. P. J. Koymans (UvA) WWW November 30, 2007 1 / 36 WWW history (1) 1968

More information

TabCaratteri="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ";

TabCaratteri=0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ; Script / Utlity www.dominioweb.org Crea menu laterale a scomparsa Creare una pagina protetta da password. Lo script in questione permette di proteggere in modo abbastanza efficace, quelle pagine che ritenete

More information

User Manual ZMONITOR. Tool for managing parametric controllers

User Manual ZMONITOR. Tool for managing parametric controllers User Manual ZMONITOR Tool for managing parametric controllers INDICE 1. PRESENTATION... 4 MINIMUM SYSTEM REQUIREMENTS... 4 DEVICES TO BE MANAGED ZMONITOR... 5 2. INSTALLATION... 6 3. LANGUAGE... 8 4. MAIN

More information

Corso: Microsoft Project Server 2010 Technical Boot Camp Codice PCSNET: AAAA-0 Cod. Vendor: - Durata: 5

Corso: Microsoft Project Server 2010 Technical Boot Camp Codice PCSNET: AAAA-0 Cod. Vendor: - Durata: 5 Corso: Microsoft Project Server 2010 Technical Boot Camp Codice PCSNET: AAAA-0 Cod. Vendor: - Durata: 5 Obiettivi Comprendere la terminologia Project Server e i componenti principali del sistema Descrivere

More information

Presentation Layer: Three different approaches. Database Access Layer: same as above.

Presentation Layer: Three different approaches. Database Access Layer: same as above. Overview of web application development Overview of ASP HTTP request/response processing State management of the script logic Microsoft Scripting Runtime library Remote Scripting Ch 5 - ASP 1 Presentation

More information

ipratico POS Quick Start Guide v. 1.0

ipratico POS Quick Start Guide v. 1.0 ipratico POS Quick Start Guide v. 1.0 Version History Version Pages Comment Date Author 1.0 First Release 5/Marzo/2012 Luigi Riva 2 SUMMARY 1 GETTING STARTED 4 1.1 What do you need? 4 1.2 ipad 5 1.3 Antenna

More information

LED Power. Power Supplies for constant current HI-POWER LEDs 350/700mA Alimentatori per LED in corrente costante HI-POWER 350/700mA 82206/700

LED Power. Power Supplies for constant current HI-POWER LEDs 350/700mA Alimentatori per LED in corrente costante HI-POWER 350/700mA 82206/700 LED Power The power supplies and accessories showed in this section are designed to achieve the best lighting and long lasting performances for LED fixtures. A particular attention has been dedicated to

More information

Fasthosts ASP scripting examples Page 1 of 17

Fasthosts ASP scripting examples Page 1 of 17 Introduction-------------------------------------------------------------------------------------------------- 2 Sending email from your web server------------------------------------------------------------------

More information

Navicat Premium è uno strumento di amministrazione per database con connessioni-multiple, consente di connettersi

Navicat Premium è uno strumento di amministrazione per database con connessioni-multiple, consente di connettersi Navicat Premium è uno strumento di amministrazione per database con connessioni-multiple, consente di connettersi simultaneamente con una singola applicazione a MySQL, SQL Server, SQLite, Oracle e PostgreSQL,

More information

How to renew S&S Video Italian version. 2009 IBM Corporation

How to renew S&S Video Italian version. 2009 IBM Corporation How to renew S&S Video Italian version A. Renewal Email Lasciate che vi illustri come rinnovare le vostre licenze software IBM con Passport Advantage Online. (Let me show you how to renew your IBM software

More information

Corso: Supporting and Troubleshooting Windows 10 Codice PCSNET: MW10-3 Cod. Vendor: 10982 Durata: 5

Corso: Supporting and Troubleshooting Windows 10 Codice PCSNET: MW10-3 Cod. Vendor: 10982 Durata: 5 Corso: Supporting and Troubleshooting Windows 10 Codice PCSNET: MW10-3 Cod. Vendor: 10982 Durata: 5 Obiettivi Al termine del corso i partecipanti saranno in grado di: Descrivere i processi coinvolti nella

More information

Book 3. Database Connectivity. U:\Book\Book_03.doc Database Connectivity

Book 3. Database Connectivity. U:\Book\Book_03.doc Database Connectivity 1 Book 3 Database Connectivity U:\Book\Book_03.doc Database Connectivity 5 10 15 Database Connectivity...1 1 Database Access With Windows ODBC...2 OLE/DB, ODBC and other Data Source Driver Models...2 Setting

More information

Visual Basic Database Programming

Visual Basic Database Programming Ch01 10/29/99 2:27 PM Page 1 O N E Visual Basic Database Programming Welcome to our book on Microsoft Visual Basic and ActiveX Data Objects (ADO) programming. In this book, we re going to see a tremendous

More information

Web Application Report

Web Application Report Web Application Report Security Report This report was created by IBM Rational AppScan 7.8.0.0 2/11/2009 5:25:03 PM 2/11/2009 5:25:03 PM 1/28 Copyright IBM Corp. 2000, 2009. All Rights Reserved. Report

More information

Odoo 8.0. Le nuove API.

Odoo 8.0. Le nuove API. Odoo 8.0 Le nuove API. davide.corio@abstract.it / abstract per pycon6 Nuove API, perchè? più object oriented stile più pythonico hooks risparmio di codice Principali novità uso dei decoratori recordsets

More information

Programmable Graphics Hardware

Programmable Graphics Hardware Programmable Graphics Hardware Alessandro Martinelli alessandro.martinelli@unipv.it 6 November 2011 Rendering Pipeline (6): Programmable Graphics Hardware Rendering Architecture First Rendering Pipeline

More information

Organization Requested Amount ( ) Leading Organization Partner 1*

Organization Requested Amount ( ) Leading Organization Partner 1* Integrated research on industrial biotechnologies 2016 Budget 2016 FILL IN THE FORM FOLLOWING THE GUIDELINES AND DO NOT DELATE THEM. PLEASE USE THE FONT TREBUCHET 10PT SINGLE SPACED. PLEASE UPLOAD THE

More information

n N e E 0 m A R sr S l 10.2015 230/01

n N e E 0 m A R sr S l 10.2015 230/01 N 0 E A R n e msrls 10.15 230/01 Cablaggi LED LED wiring NEM s.r.l. ha nella propria gamma di prodotti due diversi cablaggi per LED. In its product range, NEM s.r.l. offers two different LED wirings. 051

More information

IBM Academic Initiative

IBM Academic Initiative IBM Academic Initiative Sistemi Centrali Modulo 3- Il sistema operativo z/os (quarta parte) Unix Services Sapienza- Università di Roma - Dipartimento Informatica 2007-2008 UNIX System Services POSIX XPG4

More information

Organization Requested Amount ( ) Leading Organization Partner 1*

Organization Requested Amount ( ) Leading Organization Partner 1* Budget form 2016 FILL IN THE FORM FOLLOWING THE GUIDELINES AND DO NOT DELETE THEM. PLEASE USE THE FONT TREBUCHET 10PT, SINGLE-SPACED. PLEASE UPLOAD AS A PDF FILE. Si precisa che, per facilitare l inserimento

More information

Programma corso di formazione J2EE

Programma corso di formazione J2EE Programma corso di formazione J2EE Parte 1 Web Standard Introduction to Web Application Technologies Describe web applications Describe Java Platform, Enterprise Edition 5 (Java EE 5) Describe Java servlet

More information

AD Phonebook 2.2. Installation and configuration. Dovestones Software

AD Phonebook 2.2. Installation and configuration. Dovestones Software AD Phonebook 2.2 Installation and configuration 1 Table of Contents Introduction... 3 AD Self Update... 3 Technical Support... 3 Prerequisites... 3 Installation... 3 Adding a service account and domain

More information

PROGRAMMA CORSO DI LOGIC PRO 9

PROGRAMMA CORSO DI LOGIC PRO 9 PROGRAMMA CORSO DI LOGIC PRO 9 1-VIDEO ANTEPRIMA Durata: 4 27 2-VIDEO n.1 Durata: 1 07 - APRIRE UNA NUOVA SESSIONE 3-VIDEO n.2 Durata: 3 36 - CREARE UNA NUOVA TRACCIA - SOFTWARE INSTRUMENT : - Aprire una

More information

Chi sono in quattro punti.

Chi sono in quattro punti. vsphere 5 Licensing Chi sono in quattro punti. Massimiliano Moschini Presales/Postsales and Trainer VMUG IT Board Member VCP, VSP VTSP,VCI, V http://it.linkedin.com/in/massimilianomoschini @maxmoschini

More information

XSL - Introduction and guided tour

XSL - Introduction and guided tour Concepts and Technologies of XML 6.1 XSL - Introduction and guided tour CT-XML 2014/2015 Warning! Authors " João Moura Pires (jmp@di.fct.unl.pt) " With contributions of Carlos Damásio (cd@di.fct.unl.pt)

More information

SAFE. DESIGNED in italy CASSEFORTI PER HOTEL HOTEL SAFES

SAFE. DESIGNED in italy CASSEFORTI PER HOTEL HOTEL SAFES SAFE DESIGNED in italy CASSEFORTI PER HOTEL HOTEL SAFES SAFE TOP OPEN SAFE DRAWER Innovativa tastiera touch e display led integrato nella porta New touch keypad and stealthy LED display L apertura dall

More information

Short notes on webpage programming languages

Short notes on webpage programming languages Short notes on webpage programming languages What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of

More information

SAFE TOP OPEN. Sistema di chiusura Locking system

SAFE TOP OPEN. Sistema di chiusura Locking system SAFE: I MODELLI SAFE: MODELS SAFE TOP OPEN Innovativa tastiera touch e display led integrato nella porta New touch keypad and stealthy LED display L apertura dall alto permette un ergonomico accesso al

More information

Troubleshooting guide for 80004005 errors in Active Server Pages and Microsoft Data Access Components

Troubleshooting guide for 80004005 errors in Active Server Pages and Microsoft Data Access Components Page 1 of 9 Troubleshooting guide for 80004005 errors in Active Server Pages and Microsoft Data Access Components This article was previously published under Q306518 On This Page SUMMARY MORE INFORMATION

More information

Banners Broker è una. Compagnia di pubblicità online

Banners Broker è una. Compagnia di pubblicità online Banners Broker è una? Compagnia di pubblicità online un nuovo metodo di guadagnare online. Il nostro Prodotto è Impressioni Banner. 1 Advertising Parliamo dell Industria pubblicitaria online La pubblicità

More information

High Performance Websites: ADO versus MSXML

High Performance Websites: ADO versus MSXML High Performance Websites: ADO versus MSXML Timothy M. Chester, PhD, MCSD Senior Systems Analyst & Project Manager Computing & Information Services, Texas A&M University Summary: Tools Required: Further

More information

Lorenzo.barbieri@microsoft.com Blogs.msdn.com/vstsitalia. www.geniodelmale.info

Lorenzo.barbieri@microsoft.com Blogs.msdn.com/vstsitalia. www.geniodelmale.info Lorenzo.barbieri@microsoft.com Blogs.msdn.com/vstsitalia www.geniodelmale.info Visual Studio Team System, Professional e Standard Team Explorer si integra in VS2008/VS2005 Visual Studio.NET 2003, VS 6.0,

More information

How To Read Investire In Borsa Con I Trend Pdf

How To Read Investire In Borsa Con I Trend Pdf INVESTIRE IN BORSA CON I TREND PDF ==> Download: INVESTIRE IN BORSA CON I TREND PDF INVESTIRE IN BORSA CON I TREND PDF - Are you searching for Investire In Borsa Con I Trend Books? Now, you will be happy

More information

Description of Microsoft Internet Information Services (IIS) 5.0 and

Description of Microsoft Internet Information Services (IIS) 5.0 and Page 1 of 10 Article ID: 318380 - Last Review: July 7, 2008 - Revision: 8.1 Description of Microsoft Internet Information Services (IIS) 5.0 and 6.0 status codes This article was previously published under

More information

Web development... the server side (of the force)

Web development... the server side (of the force) Web development... the server side (of the force) Fabien POULARD Document under license Creative Commons Attribution Share Alike 2.5 http://www.creativecommons.org/learnmore Web development... the server

More information

Ferramedia Network business center Berlin Dubai, Mumbai e Palermo. sister companies

Ferramedia Network business center Berlin Dubai, Mumbai e Palermo. sister companies Ferramedia is a Company network formed by several companies registered around the World operating within many different markets. Most recently we have opened 4 business centers, Berlin, Dubai, Mumbai,

More information

WEB DATABASE PUBLISHING

WEB DATABASE PUBLISHING WEB DATABASE PUBLISHING 1. Basic concepts of WEB database publishing (WEBDBP) 2. WEBDBP structures 3. CGI concepts 4. Cold Fusion 5. API - concepts 6. Structure of Oracle Application Server 7. Listeners

More information

Corso: Administering Microsoft SQL Server 2012 Databases Codice PCSNET: MSQ2-1 Cod. Vendor: 10775 Durata: 5

Corso: Administering Microsoft SQL Server 2012 Databases Codice PCSNET: MSQ2-1 Cod. Vendor: 10775 Durata: 5 Corso: Administering Microsoft SQL Server 2012 Databases Codice PCSNET: MSQ2-1 Cod. Vendor: 10775 Durata: 5 Obiettivi Pianificare e installare SQL Server. Descrive i database di sistema, la struttura fisica

More information

ASP (Active Server Pages)

ASP (Active Server Pages) ASP (Active Server Pages) 1 Prerequisites Knowledge of Hyper Text Markup Language (HTML). Knowledge of life cycle of web page from request to response. Knowledge of Scripting language like vbscript, javascript,

More information

10CS73:Web Programming

10CS73:Web Programming 10CS73:Web Programming Question Bank Fundamentals of Web: 1.What is WWW? 2. What are domain names? Explain domain name conversion with diagram 3.What are the difference between web browser and web server

More information

By Nabil ADOUI, member of the 4D Technical Support team

By Nabil ADOUI, member of the 4D Technical Support team XSLT with PHP By Nabil ADOUI, member of the 4D Technical Support team Contents Summary... 3 Introduction... 3 Important elements... 3 The PHP XSL library... 4 The PHP XSL API... 5 XSLTProcessor:: construct...

More information

Migrating helpdesk to a new server

Migrating helpdesk to a new server Migrating helpdesk to a new server Table of Contents 1. Helpdesk Migration... 2 Configure Virtual Web on IIS 6 Windows 2003 Server:... 2 Role Services required on IIS 7 Windows 2008 / 2012 Server:... 2

More information

Reti Informatiche. WireShark. www.wireshark.org

Reti Informatiche. WireShark. www.wireshark.org Reti Informatiche WireShark www.wireshark.org What is WireShark Wireshark is a network packet analyzer. A network packet analyzer will try to capture network packets and tries to display that packet data

More information

Corso: Mastering Microsoft Project 2010 Codice PCSNET: MSPJ-11 Cod. Vendor: 50413 Durata: 3

Corso: Mastering Microsoft Project 2010 Codice PCSNET: MSPJ-11 Cod. Vendor: 50413 Durata: 3 Corso: Mastering Microsoft Project 2010 Codice PCSNET: MSPJ-11 Cod. Vendor: 50413 Durata: 3 Obiettivi Comprendere la disciplina del project management in quanto si applica all'utilizzo di Project. Apprendere

More information

Chapter 4 Accessing Data

Chapter 4 Accessing Data Chapter 4: Accessing Data 73 Chapter 4 Accessing Data The entire purpose of reporting is to make sense of data. Therefore, it is important to know how to access data locked away in the database. In this

More information

Xtreeme Search Engine Studio Help. 2007 Xtreeme

Xtreeme Search Engine Studio Help. 2007 Xtreeme Xtreeme Search Engine Studio Help 2007 Xtreeme I Search Engine Studio Help Table of Contents Part I Introduction 2 Part II Requirements 4 Part III Features 7 Part IV Quick Start Tutorials 9 1 Steps to

More information

public class neurale extends JFrame implements NeuralNetListener {

public class neurale extends JFrame implements NeuralNetListener { /* questo file contiene le funzioni che permettono la gestione della rete neurale. In particolare qui si implementa la fase di apprendimento e di addestramento. */ package neurofuzzy; import org.joone.engine.*;

More information

How To Lock A File In A Microsoft Microsoft System

How To Lock A File In A Microsoft Microsoft System Level 1 Opportunistic Locks Si intuisce che level 1 corrisponde concettualmente allo stato M di un dato in cache nel protocollo MESI A level 1 opportunistic lock on a file allows a client to read ahead

More information

Classes para Manipulação de BDs 5

Classes para Manipulação de BDs 5 Classes para Manipulação de BDs 5 Ambiienttes de Desenvollviimentto Avançados Engenharia Informática Instituto Superior de Engenharia do Porto Alexandre Bragança 1998/99 Baseada em Documentos da Microsoft

More information

di b orso ase per LabVIEW bview Lab

di b orso ase per LabVIEW bview Lab Corso di base per LabVIEW Laboratory Virtual Instrument Engineering Workbench Obiettivi del corso Conoscere le componenti di un Virtual Instrument Introdurre LabVIEW e le sue più comuni funzioni Costruire

More information

LabVIEW Internet Toolkit User Guide

LabVIEW Internet Toolkit User Guide LabVIEW Internet Toolkit User Guide Version 6.0 Contents The LabVIEW Internet Toolkit provides you with the ability to incorporate Internet capabilities into VIs. You can use LabVIEW to work with XML documents,

More information

IMPLEMENTING AN XML COURSE IN THE COLLEGE OF BUSINESS

IMPLEMENTING AN XML COURSE IN THE COLLEGE OF BUSINESS IMPLEMENTING AN XML COURSE IN THE COLLEGE OF BUSINESS Thom Luce Ohio University MIS Department luce@ohio.edu ABSTRACT Over the past decade much of computing moved from mainframe centric systems to client-server

More information

DTI / Titolo principale della presentazione IPHONE ENCRYPTION. Litiano Piccin. 11 ottobre 2014

DTI / Titolo principale della presentazione IPHONE ENCRYPTION. Litiano Piccin. 11 ottobre 2014 1 IPHONE ENCRYPTION 2 MOBILE FORENSICS Nella Computer Forensics, le evidenze che vengono acquisite sono dispositivi statici di massa; questa significa che possiamo ottenere la stessa immagine (bit stream)

More information

E-Commerce: Designing And Creating An Online Store

E-Commerce: Designing And Creating An Online Store E-Commerce: Designing And Creating An Online Store Introduction About Steve Green Ministries Solo Performance Artist for 19 Years. Released over 26 Records, Several Kids Movies, and Books. My History With

More information

Archive Server for MDaemon disaster recovery & database migration

Archive Server for MDaemon disaster recovery & database migration Archive Server for MDaemon Archive Server for MDaemon disaster recovery & database migration Abstract... 2 Scenarios... 3 1 - Reinstalling ASM after a crash... 3 Version 2.2.0 or later...3 Versions earlier

More information

Main Points. File layout Directory layout

Main Points. File layout Directory layout File Systems Main Points File layout Directory layout File System Design Constraints For small files: Small blocks for storage efficiency Files used together should be stored together For large files:

More information

www.kdev.it - ProFTPd: http://www.proftpd.org - ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9.tar.gz

www.kdev.it - ProFTPd: http://www.proftpd.org - ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9.tar.gz &8730; www.kdev.it ProFTPd Guida per ottenere un server ProFTPd con back-end MySQL. Guida per ottenere un server ProFTPd con back-end MySQL. Condizioni strettamente necessarie: - Mac OS X Developer Tools:

More information

ODBC Client Driver Help. 2015 Kepware, Inc.

ODBC Client Driver Help. 2015 Kepware, Inc. 2015 Kepware, Inc. 2 Table of Contents Table of Contents 2 4 Overview 4 External Dependencies 4 Driver Setup 5 Data Source Settings 5 Data Source Setup 6 Data Source Access Methods 13 Fixed Table 14 Table

More information

U:\Book\Book_05.doc Develop Web Pages

U:\Book\Book_05.doc Develop Web Pages 1 Book 5 Develop Web Pages U:\Book\Book_05.doc Develop Web Pages What to Read in This Part Develop Web Pages... 1 1 Server Pages and Scripting...3 1.1 ASP, JSP and ABAP Servlets... 3 1.2 CGI... 3 1.3 Active

More information

Applicazioni Web 2014/15

Applicazioni Web 2014/15 Applicazioni Web 2014/15 Lezione 10 - Persistenza Matteo Vaccari http://matteo.vaccari.name/ matteo.vaccari@uninsubria.it Perché usare un DB relazionale? Per l accesso concorrente ai dati (e svincolare

More information

Introduction to the. Barracuda Embedded Web-Server

Introduction to the. Barracuda Embedded Web-Server Introduction to the Barracuda Embedded Web-Server This paper covers fundamental concepts of HTTP and how the Barracuda Embedded Web Server can be used in an embedded device. Introduction to HTTP Using

More information

22/11/2015-08:08:30 Pag. 1/10

22/11/2015-08:08:30 Pag. 1/10 22/11/2015-08:08:30 Pag. 1/10 CODICE: TITOLO: MOC20462 Administering Microsoft SQL Server Databases DURATA: 5 PREZZO: LINGUA: MODALITA': 1.600,00 iva esclusa Italiano Classroom CERTIFICAZIONI ASSOCIATE:

More information

Certified PHP/MySQL Web Developer Course

Certified PHP/MySQL Web Developer Course Course Duration : 3 Months (120 Hours) Day 1 Introduction to PHP 1.PHP web architecture 2.PHP wamp server installation 3.First PHP program 4.HTML with php 5.Comments and PHP manual usage Day 2 Variables,

More information

How To Manage A Network On A Pnet 2.5 (Net 2) (Net2) (Procedure) (Network) (Wireless) (Powerline) (Wired) (Lan 2) And (Net1) (

How To Manage A Network On A Pnet 2.5 (Net 2) (Net2) (Procedure) (Network) (Wireless) (Powerline) (Wired) (Lan 2) And (Net1) ( Il presente documento HLD definisce l architettura e le configurazioni necessarie per separare la rete di management dai servizi dati dedicati al traffico cliente, con l obiettivo di poter accedere agli

More information

Capitolo 14: Flussi. Capitolo 14. Flussi. 2002 Apogeo srl Horstmann-Concetti di informatica e fondamenti di Java 2

Capitolo 14: Flussi. Capitolo 14. Flussi. 2002 Apogeo srl Horstmann-Concetti di informatica e fondamenti di Java 2 Capitolo 14 Flussi 1 Figura 1 Una finestra di dialogo di tipojfilechooser 2 Figura 2 Il codice di Cesare 3 File Encryptor.java import java.io.file; import java.io.fileinputstream; import java.io.fileoutputstream;

More information

DIRECTORS AND OFFICERS PROPOSTA DI POLIZZA

DIRECTORS AND OFFICERS PROPOSTA DI POLIZZA DIRECTORS AND OFFICERS PROPOSTA DI POLIZZA La presente proposta deve essere compilata dall`amministratore o dal Sindaco della Societa` proponente dotato di opportuni poteri. La firma della presente proposta

More information

Client-side Web Engineering From HTML to AJAX

Client-side Web Engineering From HTML to AJAX Client-side Web Engineering From HTML to AJAX SWE 642, Spring 2008 Nick Duan 1 What is Client-side Engineering? The concepts, tools and techniques for creating standard web browser and browser extensions

More information

UML modeling of Web Applications: Project part of the Master in Web Technology V Henry Muccini University of L Aquila 2008

UML modeling of Web Applications: Project part of the Master in Web Technology V Henry Muccini University of L Aquila 2008 UML modeling of Web Applications: Project part of the Master in Web Technology V Henry Muccini University of L Aquila 2008 01. Preface page 1 02. Homework description 1 03. Homework Requirements and Evaluation

More information

Geo-Platform Introduction

Geo-Platform Introduction Geo-Platform Introduction Dimitri Dello Buono @ geosdi 16 Sept 2013 CNR IRPI Perugia Questo lavoro è concesso in uso secondo i termini di una licenza Creative Commons (vedi ultima pagina) geosdi CNR IMAA

More information

TDD da un capo all altro. Matteo Vaccari vaccari@pobox.com matteo.vaccari@xpeppers.com (cc) Alcuni diritti riservati

TDD da un capo all altro. Matteo Vaccari vaccari@pobox.com matteo.vaccari@xpeppers.com (cc) Alcuni diritti riservati TDD da un capo all altro Matteo Vaccari vaccari@pobox.com matteo.vaccari@xpeppers.com (cc) Alcuni diritti riservati 1 Introduzione Quando si parla di Test-Driven Development spesso si sente dire facciamo

More information

Data Distribution & Replication

Data Distribution & Replication Distributed Databases Definitions Data Distribution & Replication A single logical database thatis spread physically across computers in multiple locations thatare connected by a data communications link.

More information

ESERCIZIO PL/SQL e PSP

ESERCIZIO PL/SQL e PSP ESERCIZIO PL/SQL e PSP LO SCHEMA create table studenti ( nome VARCHAR2(15) not null, cognome VARCHAR2(15) not null, eta NUMBER ); COPIATE I FILES Copiate i files da \\homeserver\ghelli\bdl\esercizi\eseps

More information

Come utilizzare il servizio di audioconferenza

Come utilizzare il servizio di audioconferenza Come utilizzare il servizio di audioconferenza Il sistema di audioconferenza puo essere utilizzato in due modalita : 1) Collegamento singolo. Si utilizza l apparecchio per audioconferenza che si ha a disposizione

More information

1. Tutorial - Developing websites with Kentico 8... 3 1.1 Using the Kentico interface... 3 1.2 Managing content - The basics... 4 1.2.

1. Tutorial - Developing websites with Kentico 8... 3 1.1 Using the Kentico interface... 3 1.2 Managing content - The basics... 4 1.2. Kentico 8 Tutorial Tutorial - Developing websites with Kentico 8.................................................................. 3 1 Using the Kentico interface............................................................................

More information

Other Language Types CMSC 330: Organization of Programming Languages

Other Language Types CMSC 330: Organization of Programming Languages Other Language Types CMSC 330: Organization of Programming Languages Markup and Query Languages Markup languages Set of annotations to text Query languages Make queries to databases & information systems

More information

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence Web Development Owen Sacco ICS2205/ICS2230 Web Intelligence Introduction Client-Side scripting involves using programming technologies to build web pages and applications that are run on the client (i.e.

More information

ISI ACADEMY Web applications Programming Diploma using PHP& MySQL

ISI ACADEMY Web applications Programming Diploma using PHP& MySQL ISI ACADEMY for PHP& MySQL web applications Programming ISI ACADEMY Web applications Programming Diploma using PHP& MySQL HTML - CSS - JavaScript PHP - MYSQL What You'll Learn Be able to write, deploy,

More information

Web Programming Step by Step

Web Programming Step by Step Web Programming Step by Step Chapter 10 Ajax and XML for Accessing Data Except where otherwise noted, the contents of this presentation are Copyright 2009 Marty Stepp and Jessica Miller. 10.1: Ajax Concepts

More information

VASCO Data Security. The Authentication Company. Richard Zoni Channel Manager Italy

VASCO Data Security. The Authentication Company. Richard Zoni Channel Manager Italy VASCO Data Security The Authentication Company Richard Zoni Channel Manager Italy 05/05/2010 Le password... più utilizzate 1. password 2. 123456 3. Qwerty 4. Abc123 5. pippo 6. 696969 7. Myspace1 8. Password1

More information

http://alice.teaparty.wonderland.com:23054/dormouse/bio.htm

http://alice.teaparty.wonderland.com:23054/dormouse/bio.htm Client/Server paradigm As we know, the World Wide Web is accessed thru the use of a Web Browser, more technically known as a Web Client. 1 A Web Client makes requests of a Web Server 2, which is software

More information

PHP and XML. Brian J. Stafford, Mark McIntyre and Fraser Gallop

PHP and XML. Brian J. Stafford, Mark McIntyre and Fraser Gallop What is PHP? PHP and XML Brian J. Stafford, Mark McIntyre and Fraser Gallop PHP is a server-side tool for creating dynamic web pages. PHP pages consist of both HTML and program logic. One of the advantages

More information

FileMaker Server 11. FileMaker Server Help

FileMaker Server 11. FileMaker Server Help FileMaker Server 11 FileMaker Server Help 2010 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker is a trademark of FileMaker, Inc. registered

More information

Introduction to ASP. Are you sick of static HTML pages? Do you want to create dynamic web pages? Do you

Introduction to ASP. Are you sick of static HTML pages? Do you want to create dynamic web pages? Do you Introduction to ASP Introduction Are you sick of static HTML pages? Do you want to create dynamic web pages? Do you want to enable your web pages with database access? If your answer is Yes, ASP might

More information

User Guide for Smart Former Gold (v. 1.0) by IToris Inc. team

User Guide for Smart Former Gold (v. 1.0) by IToris Inc. team User Guide for Smart Former Gold (v. 1.0) by IToris Inc. team Contents Offshore Web Development Company CONTENTS... 2 INTRODUCTION... 3 SMART FORMER GOLD IS PROVIDED FOR JOOMLA 1.5.X NATIVE LINE... 3 SUPPORTED

More information

DIPLOMA IN WEBDEVELOPMENT

DIPLOMA IN WEBDEVELOPMENT DIPLOMA IN WEBDEVELOPMENT Prerequisite skills Basic programming knowledge on C Language or Core Java is must. # Module 1 Basics and introduction to HTML Basic HTML training. Different HTML elements, tags

More information

Website Optimization Report. 24 February 2014. Website: http://www.sitojoomla.it/

Website Optimization Report. 24 February 2014. Website: http://www.sitojoomla.it/ 24 February 2014 Website: http://www.sitojoomla.it/ Sommario Metrics Rankings in top 10 1 1 keyword(s) Errors and warnings 7 errors 7 warnings Social signals 0 17 improvements Backlinks 0unchanged Referring

More information

C.S.E. Nodi Tipici Parametrizzati al 15-4-2015. 14/04/2015 Copyright (c) 2015 - Castalia srl

C.S.E. Nodi Tipici Parametrizzati al 15-4-2015. 14/04/2015 Copyright (c) 2015 - Castalia srl C.S.E. Nodi Tipici Parametrizzati al 15-4-2015 14/04/2015 Copyright (c) 2015 - Castalia srl 1 Avvertenze (1) Ci sono tre sezioni in questo documento: 1. Nodi in tutte le versioni (background azzurro):

More information

multiple placeholders bound to one definition, 158 page approval not match author/editor rights, 157 problems with, 156 troubleshooting, 156 158

multiple placeholders bound to one definition, 158 page approval not match author/editor rights, 157 problems with, 156 troubleshooting, 156 158 Index A Active Directory Active Directory nested groups, 96 creating user accounts, 67 custom authentication, 66 group members cannot log on, 153 mapping certificates, 65 mapping user to Active Directory

More information

Technologies and systems for business integration. www.xdatanet.com

Technologies and systems for business integration. www.xdatanet.com Technologies and systems for business integration www.xdatanet.com X DataNet, X software DataNet, builders software builders We have been We building, have been creating, building, and creating, developing

More information