Salve,
tanto per curiosità ho voluto provare questo script in locale funziona tutto bene mentre su AlterVista non riesce a creare le tabelle...come mai?
Printable View
Salve,
tanto per curiosità ho voluto provare questo script in locale funziona tutto bene mentre su AlterVista non riesce a creare le tabelle...come mai?
E' da più di un anno che su Atlervista, e non si può dire che tu sia un neofita di queste parti.
E ancora devi capire che devi fornire informazioni dettagliate se vuoi ricevere aiuto?
Ciao!
Già scusa hai ragione, va beh tutt'è che in locale si installa correttamente mentre su AlterVista non riesce a creare le tabelle, se io apro install.php inserisco i dati per crearmi un accesso al pannello di amministratore (dopo aver configurato i dati di accesso al database) e inviando il form dovrebbe comparirmi una notifica di successo mentre essa non compare e si riappare la schermata dove devo inserire i dati di accesso per l'amministratore.
Ho eliminato le pagine da AlterVista per sicurezza ma su vostra richiesta le ricarico.
Mostraci la pagina di installazione e i parametri per la connessione.
Ciao!
Pagina di connessione:
URL Script : http://miki92.altervista.org/test/install.phpCodice PHP:<?php
// ZWS Newsletter ver 1.1
//
// Copyright (C) 2001 ZaireWeb Solutions http://zaireweb.com
// This program is free software and you may modify it under the terms of the GNU General Public License. You may not include it in any distribution or package. The CP4 footer must be left intact.
// This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// You can obtain a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
//
// Edit these variables for your site
//
//
// Number of subscriber e-mails displayed per page
//
$limit = "20";
//
// Newsletter name ie: My_Site's Newsletter
//
$newsletter_name = "Newsletter Miki92";
//
// Path to CSS
//
$css = "<link rel=\"stylesheet\" type=\"text/css\" href=\"news.css\">";
//
// Return E-mail
//
$return_email = "miki92@altervista.org";
//
// Replyto: E-mail
//
$reply_email = "miki92@altervista.org";
//
// Edit database info for your site
//
$dbhost = "localhost";
$dbuser = "miki92";
$dbpass = "";
$db = "my_miki92";
//
// DO NOT modify database table config!
//
function dbopen($dbname = ""){
global $dbuser,$dbpass,$dbhost,$db;
if($dbname == "") {
$dbname = $db;
}
//Made the connection
$startconnection = @mysql_connect($dbhost, $dbuser, $dbpass) or error("Unable to connect to the Database.");
@mysql_select_db($dbname, $startconnection) or error("Unable to select database");
return $startconnection;
}
function error($text) {
global $css;
echo "<html><head><title>$text</title>$css</head><body><table border=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100%\" align=\"center\"><tr><td align=\"center\" class=\"header2\">$text<br><br><a href=\"javascript:history.go(-1)\" title=\"Previous Page\"><< Previous page</a></td></tr></table></body></html>";
exit;
}
function msg($text) {
echo "<p> </p><p> </p><center><font class=\"header2\">$text</font></center>";
}
function footer() {
echo "<br><br><center><font class=\"id3\">Managed by: <font class=\"id2\">ZWS Newsletter Manager ver 1.1 </font><br>
Copyright © 2001 ZaireWeb Solutions</font><br>
</center>";
}
?>
Dai file interessati dall'installazione, compreso quello che hai postato, togli tutti i @
ciao!
Fatto, ho tolto tutte le @ da tutti i files.
Ho trovato solo ora il problema: lo script si comporta come se register_globals fosse su ON.
Devi sostituire tutti i riferimenti a quelle variabili, ad esempio $QUERY_STRING, con i relativi indici degli array superglobali, ad esempio $_SERVER['QUERY_STRING']
Ciao!
Scusa e non posso, tramite .htaccess ed il giusto codice, mettere la register_globals su ON?
Cioè posso caricare il file .htaccess o devo per forza cambiare tutti i $QUERY_STRING in $_SERVER['QUERY_STRING']?
sinceramente non so se risolveresti, ma sicuramente è sconsigliato operare in questa maniera poichè gli script in php risulterebbero meno sicuri.
Ciao!