Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 14

Discussione: Linux e asp

  1. #1
    Utente di HTML.it L'avatar di moskitoita
    Registrato dal
    Feb 2004
    Messaggi
    1,255

    Linux e asp

    Premessa: chiedo qui e non in asp perchè immagino che nessuno li usi linux.

    Ho installato Apache::ASP su una debian con apache2, eseguendo uno script abbastanza stupido e molto datato, il webserver restituisce un errore 500 e nei log trovo un sacco di errori di sintassi nei log di apache, dato che lo script ha girato su un server windows fino a ieri, escluderei errori grossolani nel codice.
    Qualcuno sa dirmi cosa devo cambiare; tenete presente che lo script non l'ho fatto io quindi ne so quanto voi

    ecco il codice:
    codice:
    <html>
    <head>
    <title> </title>
    </head>
    <body bgcolor="#FFFFFF" text="#000088" link="#000088" vlink="#000088" alink="#000088">
    <form method="get" name="Formmotore" action="motore.asp" onSubmit="return ControllaForm();">
      <div align="center"> <font color="#000088"> 
        <input type="TEXT" name="CosaCerco" size="50">
        <input name="cas" type="submit" value="Cerca ">
        </font></div>
      <table cellpadding="0" cellspacing="0" align="center">
        <tr> 
          <td valign="top" align="center"> <font color="#000088"> 
            <input type="radio" name="TipoDiRicerca" value="AlmenoUnaParola">
            Almeno una parola 
            <input type="radio" name="TipoDiRicerca" value="TutteLeParole" checked>
            Tutte le parole 
            <input type="radio" name="TipoDiRicerca" value="FraseIntera">
            Frase intera</font></td>
        </tr>
      </table>
    </form>
    <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#000088" align="center">
      <tr> 
        <td height="18" bgcolor="#000088" bordercolor="#000088"><font color="#FFFFFF"> 
          Ricerca effettuata nel sito per </font><font color="#000088"><font color="#FFFFFF"> 
          <%dim Titolo
    dim dit
    dim dite
    dim intPosSav
    dim intPosSave
    dit = Trim(Request.QueryString("dir"))
    dit = replace(dit, "%20", " ")
    dite=dit
    Set file1 = CreateObject("Scripting.FileSystemObject")
    if dite="" then 
    Set file2 = file1.GetFolder(server.mappath("/botta"))
    else
    Set file2 = file1.GetFolder(server.mappath(dite))
    end if
    Set file3 = file2.Files
    response.write "<base target= ""mainframe"" >"
    response.write "<body link=""#000088"" bg"
    response.write "color=""#FFFFFF"" vli"
    response.write "nk=""#990099"">"
    dit = replace(dit, "@5807454743", "‚")
    dit=replace(dit,"\","/")
    dim intPos
    intPos = 1
    Do
    titol= Trim(Mid(dit, intPosSave + 1))
    intPos = InStr(intPos, dit, "/")
    If intPos = 0 Then
    Exit Do
    Else
    intPosSave = intPosSav
    intPos = intPos + 1
    intPosSav = intPos - 1
    End If
    Loop
    titol=replace(titol,"/","")
    response.write "" & titol & "" %>
          </font></font></td>
      </tr>
    </table>
    <font color="#000088"> 
    <%
    response.write "
    <div align= ""center"" >" & "<font size= ""3"" ><font color= ""#000088""  >" & titol & "</font></font>
    </div>"
    dit=replace(dit,"/","",1,2)
    For Each file in file3
    titolo=replace(file.name,".htm","")
    titolo=replace(titolo,".HTM","")
    titolo=replace(titolo,".html","")
    if titolo = "nulla.txt" then
    response.write "
    
    
    
    
    <div align= ""center"" >" &  "<font size= ""5"" > " & "" & "Materiali non presenti" & "
    </div>" & "
    <div align= ""center"" >[img][/img]</p></div>"
    else
    Set StreamTesto = File.OpenAsTextStream
    ContenutoDelFile = StreamTesto.ReadAll
    if ContenutoDelFile= "" then 
    else
    totalefilecercati=totalefilecercati + 1
    response.write "
    " & ContenutoDelFile & "
    "
    end if
    end if
    Next
    for each subfolders in file2.subfolders
    Set file2 = file1.GetFolder(server.mappath(dite & subfolders.name))
    Set file3 = file2.Files
    catt=replace(subfolders.name,"/","")
    catt = replace(catt, "@5807454743", "‚")
    if catt=cat then
    else
    direds = replace(subfolders.name, "‚", "130;")
    response.write "
    <div align= ""center"" >" & "" & "--" & catt & " (Visualizza tutti i titoli)" & "</div>"
    cat=catt
    end if
    For Each file in file3
    Set StreamTesto = file.OpenAsTextStream
    ContenutoDelFile = StreamTesto.ReadAll
    if ContenutoDelFile="" then 
    else
    totalefilecercati=totalefilecercati + 1
    response.write "
    " & ContenutoDelFile & "
    "
    end if
    Next
    next
    %>
    </font>
    
    <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#000088" align="center">
      <tr> 
        <td height="18" bgcolor="#000088" bordercolor="#000088"><font color="#000088"> 
          <font color="#FFFFFF">La ricerca �stata effettuata in 
          <% = TotaleFileCercati %>
          documenti.</font></font></td>
        <td height="18" bgcolor="#000088" bordercolor="#000088"><font color="#000088"><a href="http://www.freeasphost.co.uk/defcon/" target="_blank">Davide 
          Vogliotti</a></font></td>
      </tr>
    </table>
    </body>
    </html>

  2. #2
    Utente di HTML.it L'avatar di moskitoita
    Registrato dal
    Feb 2004
    Messaggi
    1,255
    e gli errori:

    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 33, near ") <--> dit" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before dit?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 34, near ") <--> dite" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before dite?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 36, near """ then" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before then?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 40, near ") <--> end" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before end?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 42, near ""<base target= ""mainframe"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before "mainframe"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 42, near ""mainframe"" >"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before " >"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 43, near "" >" <--> response" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before response?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 43, near ""<body link=""#000088"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before "#000088"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 43, near ""#000088"" bg"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before " bg"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 44, near "" bg" <--> response" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before response?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 44, near ""color=""#FFFFFF"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before "#FFFFFF"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 44, near ""#FFFFFF"" vli"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before " vli"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 45, near "" vli" <--> response" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before response?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 45, near ""nk=""#990099"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before "#990099"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 45, near ""#990099"">"" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before ">"?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 46, near "">" <--> dit" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before dit?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 47, near ") <--> dit" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before dit?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 62, near "","") <--> response.write "" <--> (Might be a runaway multi-line "" string starting on line 61) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before ") <--> response.write "?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 63, near "/b>" ; &Apache::ASP::WriteRef($main::Response, \\(' <--> </font" <--> (Might be a runaway multi-line // string starting on line 62) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before font?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 75, at end of line <--> (Might be a runaway multi-line '' string starting on line 67) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 75, near "" & "" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before " & "?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 75, near "" & "javascript" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before javascript?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 75, near ")" & "" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before " & "?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 94, at end of line <--> (Might be a runaway multi-line '' string starting on line 75) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before '>" & "Materiali non presenti" & "</A>
    </div>" & "
    <div align= ""center"" >[img][/img]</p></div>" <--> else <--> Set StreamTesto = File.OpenAsTextStream <--> ContenutoDelFile = StreamTesto.ReadAll <--> if ContenutoDelFile= "" then <--> else <--> totalefilecercati=totalefilecercati + 1 <--> response.write "
    " & ContenutoDelFile & "
    " <--> end if <--> end if <--> Next <--> for each subfolders in file2.subfolders <--> Set file2 = file1.GetFolder(server.mappath(dite & subfolders.name)) <--> Set file3 = file2.Files <--> catt=replace(subfolders.name,"/","") <--> catt = replace(catt, "@5807454743", "‚") <--> if catt=cat then <--> else <--> direds = replace(subfolders.name, "‚", "130;") <--> response.write "
    <div align= ""center"" >" & "<A HREF='?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 94, near "" & "" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before " & "?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 94, near "" & "list" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before list?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Backslash found where operator expected at /var/www/diadi/b.asp line 94, near "" & dite & direds&"\\" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before \\?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 107, at end of line <--> (Might be a runaway multi-line '' string starting on line 94) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before '>" & "--" & catt & " (Visualizza tutti i titoli)" & "</div></a>" <--> cat=catt <--> end if <--> For Each file in file3 <--> Set StreamTesto = file.OpenAsTextStream <--> ContenutoDelFile = StreamTesto.ReadAll <--> if ContenutoDelFile="" then <--> else <--> totalefilecercati=totalefilecercati + 1 <--> response.write "
    " & ContenutoDelFile & "
    " <--> end if <--> Next <--> next <--> ; &Apache::ASP::WriteRef($main::Response, \\('?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 114, near "font" <--> (Might be a runaway multi-line // string starting on line 108) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before font?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] Bareword found where operator expected at /var/www/diadi/b.asp line 115, near "" target="_blank" <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] \t(Missing operator before _blank?) <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [debug] String found where operator expected at /var/www/diadi/b.asp line 115, at end of line <-->
    [Fri Sep 22 21:09:48 2006] [error] [asp] [3999] [error] error compiling b.asp: Can't find string terminator '"' anywhere before EOF at /var/www/diadi/b.asp line 115. <--> , /usr/local/share/perl/5.8.8/Apache/ASP.pm line 1465

  3. #3
    Utente di HTML.it L'avatar di sylvaticus
    Registrato dal
    Aug 2004
    Messaggi
    1,207
    mhà... credo che dovresti provare a "tagliare" fino ad individuare la singola istruzione che ti da errore.. controlla inoltre il fine riga (windows/unix)
    <<contro i gas serra, spero più nelle nuove tecnologie pulite che nelle conferenze internazionali>>
    -- Steven Chu

  4. #4
    Utente di HTML.it L'avatar di Fabiuz
    Registrato dal
    Nov 2004
    Messaggi
    892
    bhe io credo che se fai una cosa cosi te la cavi meglio:

    1-intanto posta in un'altro forum per ASP;
    2-se vuoi tenere l'asp su un GNU/Linux metti su una tecnologia di virtualizzazione (tipo VmWare o come si scrive ) e metti su Windows + ASP

    ovviamente se hai le risorse macchina necessarie..!

    Debian Sarge 3.01a
    Slackware 10.2

  5. #5
    Il probema non sta tanto nel codice quanto in apacheASP, tentai anche io parecchio tempo fa' di far girare asp su linux in quel modo...ma con scarsi risultati visti gli errori che mi tirava fuori, purtroppo apacheASP (almeno da quello che ho letto vagando per la rete in cerca di info e soluzioni) non e in grado di interpretare in modo corretto asp...

    quindi se vuoi usare asp l'unica soluzione è usare windows e IIS

  6. #6
    Utente di HTML.it L'avatar di moskitoita
    Registrato dal
    Feb 2004
    Messaggi
    1,255
    quindi se vuoi usare asp l'unica soluzione è usare windows e IIS
    Questo mai, preferisco spararmi proverò asptophp, chiaramente dovrò ritoccarlo, ma meglio di nulla. Grazie lo stesso a tutti quanti

  7. #7

  8. #8
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    83
    anche a me interessa questo argomento...e vorrei capire... chi offrono sia asp che php sullo stesso server cosa usa? hanno server windows e poi c fanno girare php suppongo...ma quale sarebbe la soluzione migliore per fare il contrario?

  9. #9
    Utente di HTML.it L'avatar di sylvaticus
    Registrato dal
    Aug 2004
    Messaggi
    1,207
    Originariamente inviato da fev
    anche a me interessa questo argomento...e vorrei capire... chi offrono sia asp che php sullo stesso server cosa usa? hanno server windows e poi c fanno girare php suppongo...ma quale sarebbe la soluzione migliore per fare il contrario?
    Se ti rifererischi ad aruba... usano due serve separati: linux.tuonome.it e windows.tuonome.it ;-)
    <<contro i gas serra, spero più nelle nuove tecnologie pulite che nelle conferenze internazionali>>
    -- Steven Chu

  10. #10
    Originariamente inviato da fev
    anche a me interessa questo argomento...e vorrei capire... chi offrono sia asp che php sullo stesso server cosa usa?
    iis, suppongo
    Windows mom: «Finish your veggies! There are processes in Ubuntu that are starving to death!»
    NoWhereBlog
    FlatPress Blog Flat file, valido xhtml, espandibile

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.