Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: Parse error: parse error in ...
Forum PHP.pl > Forum > PHP
lusiek
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
webdice
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
(...)****/
Mazur_pl
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. ?>
lusiek
Mazur_pl nic nie zmieni³e¶ a b³±d dalej wywala sad.gif

Edit:
Adres strony: http://www.members.lycos.co.uk/lusio/fws/
cinekz
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.
lusiek
Jednak mia³em wersje php 4 i zmieni³em na 5 i dzia³a thx biggrin.gif
To jest wersja lo-fi g³ównej zawarto¶ci. Aby zobaczyæ pe³n± wersjê z wiêksz± zawarto¶ci±, obrazkami i formatowaniem proszê kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.