-
problema dbprefix
quando apro la pagina php mi dice errore arse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/cambook/UPLOAD/application/config/database.php on line 74
vado a vedere la liena e riguarda la BDPREFIX !!! che posso fare?
grazie!!
$db['default']['database'] = "xxx";
$db['default']['username'] = "xxxx";
$db['default']['password'] = "xxxx;
$db['default']['dbprefix'] = "";
$db['default']['hostname'] = "localhost";
-
Qui manca un $:
Codice PHP:
$db['default']['password'] = "xxxx;
Il codice deve essere:
Codice PHP:
$db['default']['database'] = "xxx";
$db['default']['username'] = "xxxx";
$db['default']['password'] = "xxxx";
$db['default']['dbprefix'] = "";
$db['default']['hostname'] = "localhost";
-
Citazione:
Originalmente inviato da
miki92
Qui manca un
$:
Codice PHP:
$db['default']['password'] = "xxxx;
Il codice deve essere:
Codice PHP:
$db['default']['database'] = "xxx";
$db['default']['username'] = "xxxx";
$db['default']['password'] = "xxxx";
$db['default']['dbprefix'] = "";
$db['default']['hostname'] = "localhost";
wow grazie ...ora l'errore e sparito
ma se visualizzo index.php non me lo fa vedere corettamente!!!
http://cambook.altervista.org/UPLOAD/index.php
-
Beh perchè c'è un errore nei collegamenti, attualmente potresti risolvere inserendo nella root del tuo spazio un file .htaccess con il seguente codice:
Codice PHP:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/UPLOAD/
RewriteRule ^(.*)$ /UPLOAD/$1
-
4. Edit $config['base_url'] in application/config/config.php
If installed to the root of your server
$config['base_url'] = "http://www.domain.ltd/"; // Url to Facebookclone. Including / at the end
If installed to a sub directory
$config['base_url'] = "http://www.domain.ltd/somesubdirname/"; // Url to Facebookclone. Including / at the end
COME DICONO D?INSTALLArE
?>
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your Code Igniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://cambook.altervista.org/
|
*/
$config['base_url'] = "http://cambook.altervista.org/"; // If uploaded to root
//$config['base_url'] = "http://cambook.altervista.org/upload/"; // If uploaded to subdirectory
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = "AUTO";
/*
|-
parte del config..
le directori su altervista sono
//cambook.altervista.org/upload/
dentro ce index.php
e le sub directori riferite aplication/
oxoxoox/
mmmm mo ora mi sembrano giusti i settaggi!!
-
Non è che da ciò che hai postato ho capito un granchè perchè hai fatto una grandissima confusione. La prossima volta utilizza gli appositi tag, per ora puoi modificare così:
Codice PHP:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your Code Igniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://cambook.altervista.org/
|
*/
$config['base_url'] = "http://cambook.altervista.org/UPLOAD"; // If uploaded to root
//$config['base_url'] = "http://cambook.altervista.org/upload/"; // If uploaded to subdirectory
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = "AUTO";
/*
|-
-
ok sorry