0

I got

Parse error: syntax error, unexpected "", expected T_STRING in ../services/sect_inc_prev.php on line 2

<div style="text-align: right;">
    <? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>
</div>
<div class="f13"></div>

what is expected as string and where to find the place where "" is? I need to know where the problem "empty space". I'm not php programmer at all

I deleted the 2nd line and I have no error now, but I don't know for what it was needed. The error was on friend's page that hosted on Bitrix system

u_mulder
  • 54,101
  • 5
  • 48
  • 64
Vadim
  • 105
  • 1
  • 9

2 Answers2

0

You should try this :

<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>

Just remove backslashes... Search a little bit more next time :)

Joffrey Carle
  • 108
  • 11
0

Try without slashes:

<div style="text-align: right;">
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>
</div>
<div class="f13"></div>
Iffi
  • 608
  • 1
  • 7
  • 16