Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [XML][PHP]na serwerze: Parse error: syntax error, unexpected '[' in a na XAMPP lokalnie: OK
eMCeH
post
Post #1





Grupa: Zarejestrowani
Postów: 48
Pomógł: 1
Dołączył: 1.04.2012
Skąd: Świętokrzyskie

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


Witam,

kod:
  1. $parametry = ['credentials'=>
  2. [
  3. ['name'=>'domain','value'=>['stringValue'=>$domain]],
  4. ['name'=>'login','value'=>['stringValue'=>$login]]
  5. ],
  6. 'password'=>$password];


lokalnie (XAMPP) jest ok ale po wrzuceniu na serwer (OVH) jest komunikat:
Kod
Parse error: syntax error, unexpected '[' in

zamiana na:
  1. $parametry = ['credentials'=>[['name'=>'domain','value'=>['stringValue'=>$domain]],['name'=>'login','value'=>['stringValue'=>$login]]],'password'=>$password];

też nic nie daje
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 17.09.2025 - 17:37