Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Błąd throw
mksdziegiel
post
Post #1





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 19.01.2005

Ostrzeżenie: (10%)
X----


wyskoajue mi taki błąd



Parse error: syntax error, unexpected T_THROW, expecting T_STRING in c:\usr\apache\httpd\html\www\include\common_small.inc on line 46


nie wiem o co w nim chodzi

a oto kawałek kodu

  1. <?php
  2. function throw($exception) {
  3. global $DOCUMENT_ROOT;
  4. if (EXCEPTION_STREAM == 1) {
  5. trigger_error($exception, E_USER_WARNING);
  6. $s = ob_get_contents();
  7. $f = fopen($DOCUMENT_ROOT."/exception.log", "a+");
  8. fwrite($f, date("H:i:s").": ".$s.'n');
  9. fclose($f);
  10. } elseif (EXCEPTION_STREAM == 0) {
  11. if (EXCEPTION_LEVEL == 0) {
  12. } elseif (EXCEPTION_LEVEL == 1) {
  13. $theme = new BaseTheme();
  14. print $theme->error($exception);
  15. trigger_error($exception, E_USER_WARNING);
  16. } elseif (EXCEPTION_LEVEL == 2) {
  17. trigger_error($exception, E_USER_ERROR);
  18. }
  19. }
  20. if (EXCEPTION_STOP) die;
  21. }
  22. ?>


wczym polega problem

linia 46 to function throw($exception) {
Go to the top of the page
+Quote Post

Posty w temacie
- mksdziegiel   [php]Błąd throw   26.11.2006, 15:43:54
- - dr_bonzo   zmien nazwe funkcji, 'throw' jest zarezerw...   26.11.2006, 15:54:34


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: 15.09.2025 - 21:41