|
|||
|
Ciao a tutti.
Il codice php che sto usando per far girare il mio database l'ho inglobato nello standard PHP per creare un modulo per Nuke. <?php if (!eregi("modules.php", $PHP_SELF)) { die ("You can't access this file directly..."); } $index = 1; require_once("mainfile.php"); $module_name = basename(dirname(__FILE__)); include("header.php"); header("Location./modules/province_view.php "); include("lib.php"); if(!mysql_connect("localhost", "Mio_Nome", "Mia_Password")) { echo "Error while connecting to MySQL" . mysql_error(); exit; } echo "Attempting to create database 'citta_italiane' ... <br>"; if(!mysql_query("create database if not exists citta_italiane")) { echo "Error while creating database " . mysql_error(); echo "<br>Please make sure that the username you are using has enough permissions to create the database 'citta_italiane'"; } mysql_close(); echo "Done ... <br>"; // create table 'province' echo "Attempting to create table 'province' ... <br>"; sql("create table if not exists province (uni VARCHAR(1) default 'Seleziona Comuni' primary key)"); echo "Done ... <br>"; include("footer.php"); ?> Ecco L'errore presente quando richiamo il modulo. Warning Cannot add header information - headers already sent by (output started at c\easyphp\nukedaownload\header.php32) in c\easyphp\nukedaownload\modules\setup\index.php on line 9 Attempting to create database 'citta_italiane' ... Done ... Attempting to create table 'province' ... Done ... La riga 9 header("Location./modules/province_view.php "); mi richiama proprio la pagina del DataBase che funziona benissimo. Ora, io vorrei inglobare il modulo all'interno del tema delle mie pagine web ma non riesco. Come posso sostituire la riga 9 con altro codice che mi richiama sempre la mia pagina che fa girare il mio DataBase senza ottenere l'errore? Ringrazio. starwars free starwars mmorpg mirrorpedia hellwars mmorpg |
![]() |
| Strumenti discussione | Cerca in questa discussione |
| Modalità visualizzazione | |
|
|
Discussioni simili
|
||||
| Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
| aggiornamenti server | MAXGRAFICA | DISCUSSIONI OFF-TOPIC | 2 | 02-11-2006 12.45.59 |
| Aggiornamenti Kernel e Rpm | serverplan | Comunicazioni stato Server | 0 | 28-10-2006 16.34.20 |
| Server Linux - Aggiornamenti Vari | serverplan | Comunicazioni stato Server | 0 | 25-05-2006 17.29.55 |
| Fantastico e aggiornamenti | Durden | Vulnerabilità | 1 | 29-11-2005 08.44.54 |
| Aggiornamenti PHPNuke | kipliko | PHP | 11 | 27-09-2003 12.11.48 |