ASP e MySQL [Era: Urgentissimo]

  • Creatore Discussione Creatore Discussione grisu81
  • Data di inizio Data di inizio
daviduccio ha scritto:
bravo! manda a info@daviduccio.it

però io l'iis non c'è l'ho impostato per far girare i SSI!

proverò tutto su apache con php.


è semplicissimo farlo guarda qui è spiegato alla perfezione:
http://my.execpc.com/~keithp/bdlognt.htm
a st'altezza qui

dimmi se vedi la pagina!

Codice:
Setting Up Pages 

Some CGI scripts are "called" via SSI directive tags in HTML pages. The server has to "parse" (look through) these pages trying to find SSI directives. 

So as not to bog down a server by forcing it to parse every HTML file it serves up looking for SSI directives, Web servers typically only look through certain HTML files. These files are identified by their extensions. 

By default, IIS will only parse HTML files that have .shtm, .shtml, and .stm extensions. 

This can pose a problem if you want to start adding SSI directive tags to long-established pages. These pages may have the more traditional extensions of .htm and .html and through time could be linked to by numerous other sites and indexed with their current extensions by various search engines. Changing the extensions to accommodate server parsing would cause a raft of 404 errors when people try to access these pages from existing links and search engine references. 

Apache users can get around the above problem by using a .htaccess file. You don't even have to be a server admin to set one up. However, with IIS you do have to be a server admin, or at least an IIS admin, to get around the above problem. Let's say you want IIS to also parse all pages that have a .htm extension. Here's how: 


Right-click on the selected Web site and select Properties 
Click on the Home Directory tab 
Click on the Configuration button
 
daviduccio ha scritto:
Ahh capito, devo fare tutto quello che c'è scrutto sotto serve rparring, giusto?

Ciao ti fò sapere!

si sotto server parsing...basta che aggiungi alla cartella del mio sito le estensioni htm e html aggiungendo quella libreria!!! E poi va...

per vedere se funzionano gli include devi aprire dal localhost le pagine (magari fai una prova con sta pagibetta così)
Codice:
<HTML>

<HEAD>
</HEAD>
<BODY>

<!--#echo var="DATE_LOCAL"-->
<!--#echo var="DOCUMENT_NAME"-->
</BODY>
</HTML>

così vedi subito se vanno gli ssi
 
Allora!!!
Non ho nemmeno scaricato i tuoi files, volevo provare da solo e ho avuto ragione! :slurp:

Ho fatto esattamente quello che ti avevo detto, ma forse sbagliavi!

nel frame centrale, nella pagina .shtml prelevo il nome:

<!--#echo var="DOCUMENT_NAME"-->

e scrivo lo script per passare il medesimo al frame inferiore:

<script language="javascript">
nome="<!--#echo var="DOCUMENT_NAME"-->"
parent.frames.footer.location.href="index.asp?nome="+nome;
</script>

nella pagina .asp del frame inferiore, recupero semplicemente:


<%=Request.QueryString("nome")%>


Pole....prepara la birra!!!!!! C'è l'ho fatta!!! Guardare per credere!!!

http://www.daviduccio.it/screen.jpg

Ciauuuuzzz!

NB: ciccio, è stato un piacere aiutarti!
 
Sei una bestia!

daviduccio ha scritto:
.. Pole....prepara la birra!!!!!! C'è l'ho fatta!!! ..
Che dirti Davide se non.. TANTO DI CAPPELLO!!!!! :faraone:

Allora segnati che quando fai un salto qui a Venezia avanzi una bella birra, eh eh!! :D

A presto!! :fonzie:

x Superciccio: hai visto che ti ho chiamato la persona giusta!! ;)

Salut!!
:byebye:
 
No dai, sei molto bravo anche tu! Vedo che ragioni sui problemi e li annalizzi per bene! :fonzie:

A venezia sono stato mi sembra 3 volte, e due volte solo in stazione, perché ero diretto a Monselice.

Appena sono in zona, ti contatto per la birra.....:D :D

ciauz...... :byebye:
 
Ultima modifica:
si ma...

speeta potresti farlo col nome die mie i file che senno non capisco bene (ricordati che l'index è negozio.html nel quale vengono visualizzati a.asp e footer.asp)
 
noooooooooooo

mi sto odiando non ci crederai ma non funzione, non è possibile...alllora ti metto la parte interessata

l'index
Codice:
<FRAMESET ROWS=20%,70%,10%>

     <NOFRAME>
	    <H1>ATTENZIONE</H1>
	    Questa pagina è organizzata in frame
     </NOFRAME>

	<FRAME SRC="header.html">
	
        <FRAMESET COLS=30%,70%>
      
	<FRAME SRC="menu.html" NAME="menu">
	<FRAME SRC="A.asp" NAME="main">
	
        </FRAMESET>

	<FRAME SRC="footer.asp" NAME="footer">
   
</FRAMESET>

a.asp
Codice:
<script language="javascript">
nome='<!--#echo var="DOCUMENT_NAME"-->';
parent.frames.footer.location.href="footer.asp?nome="+nome;
alert(nome);
</script>

footer.asp
Codice:
<BODY>
<%@ LANGUAGE="JScript" %>
<%
var p = Request.QueryString("nome");
Response.Write(p);
%>
</BODY>
<HTML>

tra l'altro come facevi a fare stampare nel tuo codice la roba senza mettere un Response.Write(nome_variabile)?!?!

cmq ho dovuto metter gli ' ed il ; perchè on funzionava e mi dava errore non so più come fare, prova coi miei files...

Leggi anche il txt con su scritto traccia incriminata così leggi bene cosa non mi funziona :eek: :dipser: :dipser: :dipser:
 
Ultima modifica:
Ciccio, la pagina centrale deve essere .shtml, i SSI non vanno su ASP!!

La struttura che ti ho mandato è index.htm(set di frame)

index.shtml(pagina del frame centrale)

index.asp(pagina del frame inferiore)

:fonzie:
 

Discussioni simili