Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Parse error: parse error in ...
lusiek
post 11.05.2007, 17:57:00
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 11.05.2007

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


Otóż mam taki problem posiadam Fillar WebSystem 1.0.0 i gdy włączam index.php wyskakuje mi błąd :

Parse error: parse error in /data/members/free/tripod/uk/l/u/s/lusio/htdocs/fws/index.php on line 29

A mój index.php wygląda tak:
  1. <?php
  2. /*
  3. *****************************************************************************
  4. *  Fillar WebSystem 1.0.0
  5. *  ========================================
  6. *  Fillar Systems 2002/2003
  7. *  Site Engine/Discussion Board
  8. *****************************************************************************
  9. *
  10. *  -> Main script
  11. *  -> Written by Tomasz "Zyx" Jedrzejewski
  12. *  -> Date started: 2-7-2003
  13. *
  14. * -> Version: 1.0.0
  15. *****************************************************************************
  16. */
  17. /***************************************************************************
  18.  *
  19.  *  This program is free software; you can redistribute it and/or modify
  20.  *  it under the terms of the GNU General Public License as published by
  21.  *  the Free Software Foundation; either version 2 of the License, or
  22.  *  (at your option) any later version.
  23.  *
  24.  ***************************************************************************/
  25.  
  26. define('FWS_INTERFACE', 'service');
  27.  
  28. try
  29. {
  30. require('./engine/basic.php');
  31. require('./engine/config.php');
  32. require('./engine/templates.php');
  33. require('./engine/manager.php');
  34. require('./engine/personalization.php');
  35. require('./engine/modules.php');
  36. require('./engine/sessions.php');
  37.  
  38. require('./engine/fws.php');
  39. require('./engine/auth.php');
  40.  
  41. require('./engine/stack.php');
  42. require('./engine/menu.php');
  43.  
  44. fws::$session = new session();
  45. fws::$auth = new auth();
  46.  
  47. fws::setup(fws::$io -> is_set('p') ? fws::$io -> p : 'index');
  48.  
  49. fws::$stack = new stack_manager($items);
  50. fws::$stack -> execute();
  51.  
  52. fws::display();
  53.  
  54. }catch(system_exception $ex){
  55. echo '<html><head><title>Fillar WebSystem exception</title></head></body>';
  56. echo '<h1>Fillar Websystem system exception no. '.$ex -> getCode().'</h1><hr>
  57. '.$ex -> getMessage().' in '.$ex -> getFile().' on line '.$ex -> getLine().'<br></body></html>';
  58. }catch(database_exception $ex){
  59. echo '<html><head><title>Fillar WebSystem database exception</title></head></body>';
  60. echo '<h1>Fillar Websystem database exception no. '.$ex -> getCode().'</h1><hr>
  61. '.$ex -> getMessage().' in '.$ex -> getFile().' on line '.$ex -> getLine().'<br>Query: <i>'.$ex -> query.'</i></body></html>';
  62. }
  63. ?>


I nie wiem co zrobić proszę o pomoc

Ten post edytował lusiek 11.05.2007, 17:57:47
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
webdice
post 11.05.2007, 18:05:27
Post #2


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Mi nie wypluwa żadnego błędu, ale wydaje mi się ze jest to może być spowodowane tym że źle zamykasz komentarz

Kod
(...)****
/


Powinno być tak:

Kod
(...)****/


Ten post edytował webdicepl 11.05.2007, 18:06:43
Go to the top of the page
+Quote Post
Mazur_pl
post 11.05.2007, 18:12:04
Post #3





Grupa: Zarejestrowani
Postów: 87
Pomógł: 0
Dołączył: 11.05.2007

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


Daj tak:
  1. <?php
  2. /*
  3. *****************************************************************************
  4. *  Fillar WebSystem 1.0.0
  5. *  ========================================
  6. *  Fillar Systems 2002/2003
  7. *  Site Engine/Discussion Board
  8. *****************************************************************************
  9. *
  10. *  -> Main script
  11. *  -> Written by Tomasz "Zyx" Jedrzejewski
  12. *  -> Date started: 2-7-2003
  13. *
  14. * -> Version: 1.0.0
  15. *****************************************************************************
  16. */
  17. /***************************************************************************
  18.  *
  19.  *  This program is free software; you can redistribute it and/or modify
  20.  *  it under the terms of the GNU General Public License as published by
  21.  *  the Free Software Foundation; either version 2 of the License, or
  22.  *  (at your option) any later version.
  23.  *
  24. ***************************************************************************/
  25.  
  26. define('FWS_INTERFACE', 'service');
  27.  
  28. try
  29. {
  30. require('./engine/basic.php');
  31. require('./engine/config.php');
  32. require('./engine/templates.php');
  33. require('./engine/manager.php');
  34. require('./engine/personalization.php');
  35. require('./engine/modules.php');
  36. require('./engine/sessions.php');
  37.  
  38. require('./engine/fws.php');
  39. require('./engine/auth.php');
  40.  
  41. require('./engine/stack.php');
  42. require('./engine/menu.php');
  43.  
  44. fws::$session = new session();
  45. fws::$auth = new auth();
  46.  
  47. fws::setup(fws::$io -> is_set('p') ? fws::$io -> p : 'index');
  48.  
  49. fws::$stack = new stack_manager($items);
  50. fws::$stack -> execute();
  51.  
  52. fws::display();
  53.  
  54. }catch(system_exception $ex){
  55. echo '<html><head><title>Fillar WebSystem exception</title></head></body>';
  56. echo '<h1>Fillar Websystem system exception no. '.$ex -> getCode().'</h1><hr>
  57. '.$ex -> getMessage().' in '.$ex -> getFile().' on line '.$ex -> getLine().'<br></body></html>';
  58. }catch(database_exception $ex){
  59. echo '<html><head><title>Fillar WebSystem database exception</title></head></body>';
  60. echo '<h1>Fillar Websystem database exception no. '.$ex -> getCode().'</h1><hr>
  61. '.$ex -> getMessage().' in '.$ex -> getFile().' on line '.$ex -> getLine().'<br>Query: <i>'.$ex -> query.'</i></body></html>';
  62. }
  63. ?>


Ten post edytował Mazur_pl 11.05.2007, 18:12:29
Go to the top of the page
+Quote Post
lusiek
post 11.05.2007, 18:15:03
Post #4





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 11.05.2007

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


Mazur_pl nic nie zmieniłeś a błąd dalej wywala sad.gif

Edit:
Adres strony: http://www.members.lycos.co.uk/lusio/fws/

Ten post edytował lusiek 11.05.2007, 18:21:07
Go to the top of the page
+Quote Post
cinekz
post 11.05.2007, 18:36:44
Post #5





Grupa: Zarejestrowani
Postów: 50
Pomógł: 6
Dołączył: 15.06.2006

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


Witam wszystkich winksmiley.jpg
@lusiek: jaka masz wersje php na serwerze?
Struktura try..catch i exception została wprowadzona w PHP5, a mnie sie wydaje, że ty masz PHP4.
Go to the top of the page
+Quote Post
lusiek
post 11.05.2007, 19:55:49
Post #6





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 11.05.2007

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


Jednak miałem wersje php 4 i zmieniłem na 5 i działa thx biggrin.gif
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: 14.08.2025 - 04:48