Błąd "Parse error: syntax error, unexpected"

Witam,

nic nie zmienialem na stronce ostatnio, az tu nagle wchodze dzis i wyskakuje mi błąd:

“Parse error: syntax error, unexpected ‘<’ in /home/t/e/l/telefoniczna/www/index.php on line 37”

Nie wiedziałem co zrobic więc skopiowałem plik index.php, ktory mialem kiedys skopiowany na dysk(skopiowalem kiedys cala stronke z ftp tak na wszelki wypadek)…pomogło…niestety na krotko, wchodze 2h pozniej i znowu to samo. No to znowu skopiowalem ten plik i pomoglo, ale boje się, poniewaz myslę ze to się powtorzy, a nie moge przeciez siedziec ciagle na kompie i co chwila kopiowac ten plik. Nie znam się na php, dlatego proszę o Waszą pomoc, w rozwiązaniu tego problemu. Nie chcę aby stronka spadła mi w wynikach google:/

p.s. wiem ze chodzi o jakis blad w 37 linijce, ale nie wiem czym to jest spowodowane ze, robi sie ciagle na nowo.

Szklana kula mi się zepsuła, więc może pokaż kod :stuck_out_tongue:

ok, :], dzis rano sytuacja sie powtorzyla:/

<?php

// $Id: index.php,v 1.91 2006/12/12 09:32:18 unconed Exp $


/**

 * @file

 * The PHP page that serves all page requests on a Drupal installation.

 *

 * The routines here dispatch control to the appropriate handler, which then

 * prints the appropriate page.

 */


require_once './includes/bootstrap.inc';

drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);


$return = menu_execute_active_handler();


// Menu status constants are integers; page content is a string.

if (is_int($return)) {

  switch ($return) {

    case MENU_NOT_FOUND:

      drupal_not_found();

      break;

    case MENU_ACCESS_DENIED:

      drupal_access_denied();

      break;

    case MENU_SITE_OFFLINE:

      drupal_site_offline();

      break;

  }

}

elseif (isset($return)) {

  // Print any value (including an empty string) except NULL or undefined:

  print theme('page', $return);


}


drupal_page_footer();[/code]

help!

Jak już, to powinno być tak…

albo tak

ten kod ktory podalem rano to kod z pliku na serwerze, kiedy stronka jest juz popsuta, ten, ktory wrzucam z dysku i na ktorym dziala rozni sie koncowka:

<?php

// $Id: index.php,v 1.91 2006/12/12 09:32:18 unconed Exp $


/**

 * @file

 * The PHP page that serves all page requests on a Drupal installation.

 *

 * The routines here dispatch control to the appropriate handler, which then

 * prints the appropriate page.

 */


require_once './includes/bootstrap.inc';

drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);


$return = menu_execute_active_handler();


// Menu status constants are integers; page content is a string.

if (is_int($return)) {

  switch ($return) {

    case MENU_NOT_FOUND:

      drupal_not_found();

      break;

    case MENU_ACCESS_DENIED:

      drupal_access_denied();

      break;

    case MENU_SITE_OFFLINE:

      drupal_site_offline();

      break;

  }

}

elseif (isset($return)) {

  // Print any value (including an empty string) except NULL or undefined:

  print theme('page', $return);


}


drupal_page_footer();

Nie wiem w jaki sposob, ale pozniej sie on zmienia na ten co podalem rano i wtedy stronka sie psuje:/

dorzucają jakiegoś typu reklamę, bądź statystyki, coś takiego, zamknij php pod koniec pliku tak jak napisał adpawl

drupal_page_footer();

?>

ok, dzieki chlopaki :mrgreen: