Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Parse error:
-grzesosw-
post 27.10.2013, 07:05:35
Post #1





Goście







Witam
Mam problem podczas konfiguracji database a mianowicie wyskakuje mi problem cały czas :


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /users/sh177406/www/oglosz.pl/application/config/database.php on line 25





a linia 25 to : 'persistent' => FALSE,



Z góry dzięki za pomoc smile.gif
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
lobopol
post 27.10.2013, 08:14:02
Post #2





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

Ostrzeżenie: (0%)
-----


pokaż większy fragment kodu, to może być spowodowane choćby błędem w deklarowaniu tablicy.


--------------------
Go to the top of the page
+Quote Post
-grzesow-
post 27.10.2013, 08:23:05
Post #3





Goście







?php defined('SYSPATH') OR die('No direct access allowed.');

if (Kohana::$environment === Kohana::DEVELOPMENT) {
return array
(
'default' => array
(
'type' => 'mysql',
'connection' => array(
/**
* The following options are available for MySQL:
*
* string hostname
* integer port
* string socket
* string username
* string password
* boolean persistent
* string database
*/
'hostname' => 'mysql3.superhost.pl',
'port' => 3307,
'username' => 'ssh177406@193.218.152.180',
'password' => 'bolo2308'
'persistent' => FALSE,
'database' => 'sh177406_ogloszpl',
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
'backup' => array
(
'type' => 'mysqli',
'connection' => array(
/**
* The following options are available for MySQL:
*
* string hostname
* integer port
* string socket
* string username
* string password
* boolean persistent
* string database
*/
'hostname' => 'mysql3.superhost.pl',
'port' => 3307,
'username' => 'sh177406@193.218.152.180',
'password' => 'bolo2308'
'persistent' => FALSE,
'database' => 'sh177406_ogloszpl',
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
'alternate' => array(
'type' => 'pdo',
'connection' => array(
/**
* The following options are available for PDO:
*
* string dsn
* string username
* string password
* boolean persistent
* string identifier
*/
'dsn' => 'mysql:host=localhost;dbname=kohana',
'username' => 'root',
'password' => FALSE,
'persistent' => FALSE,
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
);
}
else
{
return array
(
'default' => array
(
'type' => 'mysql',
'connection' => array(
/**
* The following options are available for MySQL:
*
* string hostname
* integer port
* string socket
* string username
* string password
* boolean persistent
* string database
*/
'hostname' => 'mysql3.superhost.pl',
'port' => 3307,
'username' => 'sh177406@193.218.152.180',
'password' => 'bolo2308'
'persistent' => FALSE,
'database' => 'sh177406_ogloszpl',
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
'backup' => array
(
'type' => 'mysqli',
'connection' => array(
/**
* The following options are available for MySQL:
*
* string hostname
* integer port
* string socket
* string username
* string password
* boolean persistent
* string database
*/
'hostname' => 'mysql3.superhost.pl',
'port' => 3307,
'username' => 'sh177406@193.218.152.180',
'password' => 'bolo2308',
'persistent' => FALSE,
'database' => 'sh177406_ogloszpl',[php][/php]
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
'alternate' => array(
'type' => 'pdo',
'connection' => array(
/**
* The following options are available for PDO:
*
* string dsn
* string username
* string password
* boolean persistent
* string identifier
*/
'dsn' => 'mysql:host=localhost;dbname=kohana',
'username' => 'root',
'password' => FALSE,
'persistent' => FALSE,
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => FALSE,
'profiling' => TRUE,
),
);
}
Go to the top of the page
+Quote Post
valkirek
post 27.10.2013, 09:03:18
Post #4





Grupa: Zarejestrowani
Postów: 117
Pomógł: 6
Dołączył: 24.07.2013

Ostrzeżenie: (0%)
-----


Forum nie parser - tak napiszą moderatorzy biggrin.gif
Zmień nazwę tematu bo zamkną

Pewny nie jestem ale tu brakuje przecinków na końcu:
password' => 'bolo2308'
Go to the top of the page
+Quote Post
lobopol
post 27.10.2013, 09:30:35
Post #5





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

Ostrzeżenie: (0%)
-----


Tak brakuje mu przecinka po w zasadzie każdym
  1. password' => 'bolo2308'



Ten post edytował lobopol 27.10.2013, 09:31:16


--------------------
Go to the top of the page
+Quote Post
--grzesosw--
post 27.10.2013, 09:31:30
Post #6





Goście







Temat Zamykam
Strona ruszyła smile.gif
Dzięki za pomoc smile.gif)
Go to the top of the page
+Quote Post
--Adek--
post 27.10.2013, 10:21:31
Post #7





Goście







grzesosw, Jeśli to hasło co tutaj podałeś jest takie jakie do bazy, to je zmień. Wszystkie dane (jeśli są prawdziwe), które podałeś, pozwalają się zalogować do twojej bazy danych mysql.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 21:58