-
Parse error
Ciao a tutti quando apro il file install.php mi compre questo errore
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /membri/universal3000/wap/Settings.php on line 29
dove potrebbe essere?
Codice PHP:
define('OEC',true);
require_once(dirname(__FILE__) . '/Settings.php');
require_once($source . '/Class.php');
$info = new loadinfo;
// Connect to MySQL database
$db_connect = @mysql_connect($db_server, $db_user, $db_pass);
if(!$db_connect || !@mysql_select_db($db_name, $db_connect))
die($info -> db_error());
if(!empty($_GET['step']))
{
if($_GET['step'] == '2')
{
mysql_query("CREATE TABLE `{$db_prefix}boot` (
`memberName` varchar(80) NOT NULL,
`boot_time` int(11) NOT NULL,
`room` int(11) NOT NULL,
`reason` text NOT NULL,
PRIMARY KEY (`boot_time`)
) ENGINE=MyISAM;");
mysql_query("CREATE TABLE `{$db_prefix}invites` (
`inv_id` int(11) NOT NULL auto_increment,
`room_id` int(11) NOT NULL,
`MemberName` varchar(245) NOT NULL,
`msg` text NOT NULL,
PRIMARY KEY (`inv_id`)
) ENGINE=MyISAM;");
mysql_query("CREATE TABLE `{$db_prefix}membergroups` (
`ID_GROUP` smallint(5) unsigned NOT NULL auto_increment,
`groupName` varchar(80) NOT NULL default '',
PRIMARY KEY (`ID_GROUP`)
) ENGINE=MyISAM;");
Poi il data base è impostato bene, ma nel prefisso non so cosa mettere, o meglio, non riesco a trovare il prefisso
Codice PHP:
$db_server = 'localhost'; # Database server / host
$db_user = 'universal3000; # Database user
$db_pass = ''; # database password
$db_name = 'my_universal3000'; # Database name
$db_prefix = '';
Grazie 1000 a chi mi sa aiutare:shock::shock::shock:
-
Codice PHP:
$db_user = 'universal3000;
non hai chiuso la virgoletta dopo il terzo zero
-
Citazione:
Originalmente inviato da
universal3000
$db_prefix = ';
non è chiusa sul prefix
-
A grazie:top: ora mi è spuntata questa scritta
Fatal error: main() [function.require]: Failed opening required '/home/user/public_html/chat/Source/Class.php' (include_path='.:') in /membri/universal3000/wap/install.php on line 24:shock:
vi posto il link http://universal3000.altervista.org/wap/install.php
-
guarda nel file Settings.php che sicuramente nn hai configurato il percorso assoluto correttamente
-
Qua c'è il percorso
Codice PHP:
$scripturl = 'http://localhost/chat/index.php'; #absolute url to your chat index file
$source = '/home/user/public_html/chat/Source'; # path to your source files
$themedir = 'http://localhost/chat/Style'; # url to your styles directory
ma forse ho difficoltà a configurare:cry:
-
prova così:
Codice PHP:
$scripturl = 'http://universal3000.altervista.org/chat/index.php'; #absolute url to your chat index file
$source = '/membri/universal3000/chat/Source'; # path to your source files
$themedir = 'http://universal3000.altervista.org/chat/Style'; # url to your styles directory
-
lo fatto
Codice PHP:
$scripturl = 'http://universal3000.altervista.org/chat/index.php'; #absolute url to your chat index file
$source = '/membri/universal3000/chat/Source'; # path to your source files
$themedir = 'http://universal3000.altervista.org/chat/Style'; # url to your styles directory
ma spunta cliccando il file install.php quella scritta, fatal error :(