ciao a tutti,
ho dei problemi a far andare il mio server web con apache...
voglio fare un semplice sito,
<html>
<head>
<title>Benvenuti nel classificatore vocale</title>
</head>
<body bgcolor="#FFFFFF">
<BGSOUND SRC="the.wav" LOOP=?|INFINITE >
<center>
<font size = 5>Classificatore vocale</font>
<form METHOD=GET ACTION=http://127.0.0.1/cgi-bin/script_add>
Nome del nuovo utente da creare:
<a href="the.wav">
<input NAME=USER TYPE=TEXT VALUE="" SIZE=20 MAXLENGTH=10>
<input TYPE="SUBMIT" NAME="" VALUE="Click per aggiungere un nuovo utente"></a>
</form>
<form METHOD=GET ACTION=http://127.0.0.1/cgi-bin/script_del>
<input TYPE="SUBMIT" NAME="" VALUE="Click per cancellare un utente"></form>
<form METHOD=GET ACTION=http://127.0.0.1/cgi-bin/script_login>
<hr size="10">
<input TYPE="SUBMIT" NAME="" VALUE="Login"></form>
Se ti sei dimenticato la login clicca qui
</center>
<font size=2>SUPPPORTO HARDWARE LIBERAMENTE CONCESSO DA </font>
[img]logobsm.gif[/img]
</body>
</html>
con i tab che eseguono il seguente script:
<code>
#!/bin/bash
USER=$(echo $QUERY_STRING|cut -d= -f2|cut -d\& -f1)
DATABASE=./voci.db
if [ -z "$USER" ];
then
{
cat ./inizio.html
cat ./errore_username.html
}
else
{
if [ -f ./seriale.lock ]
then
{
cat ./inizio.html
cat ./errore_lock.html
}
else
{
if ./print $DATABASE |grep "Author:"|sort|sort -u|cut -d: -f2-|grep -e"$USER" &>/dev/null
then
{
cat ./inizio.html
cat ./errore_userexist.html
}
else
{
cat ./inizio.html
echo "<html>"
echo "<center>"
echo "<h1>Quando pronti premere il pulsante START per iniziare l'acquisizione</h1>"
echo "<h1>della voce dell'utente \"$USER\"</h1>"
echo "<form METHOD=GET ACTION=http://127.0.0.1/cgi-bin/script_start>"
echo "<input TYPE=HIDDEN NAME=\"USER\" VALUE=$USER>"
echo "
<input TYPE=\"SUBMIT\" NAME=\"\" VALUE=\"START\"></form>"
echo "<hr>"
echo "
<a href=\"http://127.0.0.1/pagina.html\">ANNULLA</a>"
echo "</center>"
echo "</html>"
}
fi
}
fi
}
fi
</code>
mi sapreste dare delle dritte...?