Salve a tutti,
ho registrato da poco un dominio con aruba. Utilizzo PHP e MySQL per interfacciarmi al server e le session per permettere il login diegli utenti registrati.
Per ora il sito è "under costruction", perché ho un grosso problema con la pagina php che ha la funzione di aprire la sessione.
Il problema che mi restituisce il server è il seguente:Il server error log mi da questi errori:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@sito.it and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.ed il codice della pagina incriminata è il seguente:Premature end of script headers: opensession.php, referer:
suexec policy violation: see suexec log for more details, referer:Sapreste aiutarmi a risolvere il problema?Codice PHP:
<?
session_start();
$_SESSION[user]=$_GET[user];
$_SESSION[start]=1;
include ("../bonsai_connect.php");
$link=mysql_connect($host, $login, $pass)
or die ("Non è stato possible accedere al server $host");
mysql_select_db ($db, $link)
or die ("Non è stato possibile selezionare il database $db");
$query="update user set data_ultima_visita=NOW() where iduser='$_SESSION[user]'";
$fai=(mysql_query($query));
echo "<meta http-equiv='refresh' content='0;url=profile.php'>";
mysql_close($link);
?>
Grazie mille in anticipo.