sto cercando di configurare questo script ma non capisco quale possa essere l'errore... ho il file config.php:
<%php
$domain = "http://www.miosito.it";
$webmaster = "miamail.it";
$website_name = "miosito";
$include_menu = "0";
$root = "http://www.miosito.it";
$db_host = "localhost";
$db_user = "user";
$db_name = "name";
$db_pass = "password";
%>
e fin qui inserisco i miei dati ed è tutto ok..
poi ho install.php:
<?php
if ($action == "")
{ ?>
<form action="?install=go" method="post">
Please make sure you've filled out the config.php
<input type="submit" value="Install" name="submit">
</p>
</form>
<?php } ?>
<?php
if ($install == "go")
{
include ("config.php");
$conn = mysql_connect("$db_host", "$db_user", "$db_pass") or die("Failed to connect to mysql server");
mysql_select_db("$db_name", $conn);
$sql = "CREATE TABLE an_members";
$sql .= "(";
$sql .= "id int(11) NOT NULL ,";
$sql .= "username text NOT NULL,";
$sql .= "email text NOT NULL,";
$sql .= "password text NOT NULL,";
$sql .= "validated text NOT NULL,";
$sql .= "PRIMARY KEY (id),";
$sql .= "KEY id (id),";
$sql .= "KEY id_2 (id)";
$sql .= ") TYPE=MyISAM;";
$result = mysql_query($sql, $conn)or die("Failed Query of " . $sql);
if (!result){
echo "Failed creating table, please check your mysql settings and try again";
}
else{
echo "Succes! miosito!
You can now proceed to the <a href=\"signup.php\">signup area</a>";}
}
?>
quando lanci l'install mi da questo errore...
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
che significa.. sono poco pratico di php e spero che voi possiate aiutarmi...![]()