Ciao a tutti!
Ho un problema di permessi di accesso ad una pagina che ho creato io in php.
l'erorre che il mio server web da è questo:
Forbidden
You don't have permission to access /"inserisci_prenotazione.php on this server.
--------------------------------------------------------------------------------
Apache/2.0.63 (Win32) PHP/5.2.5 Server at localhost Port 80
il punto è che io lavoro su piattaforma windows e quindi problemi di permessi non ne dovrei avere!!!
la pagina in questione è questa:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>prenotazione film</title>
</head>
<?php include'config.php';
?>
<body>
Questi sono gli spettacoli :
<?php
$titolo_film=$_REQUEST['titolo'];
$nome_cinema=$_REQUEST['nome'];
$query_id="select id_film from film where titolo='$titolo_film'";
$esegui_id=pg_query($db, $query_id);
while( $valore_id=pg_fetch_array($esegui_id) )
{
$id_film=$valore_id['id_film'];
}
if( strlen($titolo_film) > 1)
{
$query = "select * from spettacoli where titolo = '$titolo_film' order by titolo asc";
$esegui_q=pg_query($db, $query);
if (pg_num_rows( $esegui_q ) > 0 )
{
while( $valore=pg_fetch_array($esegui_q) )
{
$sala=$valore['sala'];
echo $valore['titolo'] . " " . $valore['cinema'] . " " .$valore['sala'] ." ".$valore['data'] . " " . $valore['ora'] ."</a>";
echo '
';
echo 'prenota';
}
}
else
{
echo "nessun risultato ";
echo "
";
}
}
/*$query_id="select id_film from film where titolo='$titolo_film'";
$esegui_id=pg_query($db, $query_id);
while( $valore_id=pg_fetch_array($esegui_id) )
{
$id_film=$valore_id['id_film'];
}*/
if(strlen($nome_cinema) >1)
{
$que = "select * from spettacoli where cinema = '$nome_cinema' order by cinema, sala asc";
$eseg_q= pg_query($db, $que);
if (pg_num_rows( $eseg_q ) > 0 )
{
while( $value=pg_fetch_array($eseg_q) )
{
$sala=$value['sala'];
echo $value['cinema'] . " " . $value['sala'] . " " .$value['titolo'] ." ".$value['data'] . " " . $value['ora'] ."</a>" ;
echo "
";
echo "
<table>
<tr><td>Numero posti:</td><td><input type=\"text\" name=\"num_posti\" size=\"20\" maxlength=\"10\"></td></tr></table>";
echo '<a href=\"inserisci_prenotazione.php?sala='.$sala.'\" >prenota</a>';
}
}
else
{
echo "nessun risultato ";
echo"
";
}
}
?>
</body>
</html>
questa è quella da cui parto per arrivare alla fantomatica pagina con problemi di permessi...
HELP!!
Thanks!

Rispondi quotando