Answer the question
In order to leave comments, you need to log in
Why does the script from under the crown in Bitrix not work?
Why does the script from under the crown in Bitrix not work?
It does not work when I write this in the file before the script code
<?php
$_SERVER["DOCUMENT_ROOT"] = "/home/c/cok23/caytex.ru/public_html";
$DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"];
define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
define("BX_CRONTAB", true);
//set_time_limit(0);
define("LANG", "en");
define('CHK_EVENT', true);
set_time_limit(0);
ignore_user_abort(true); ?>
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?
require($_SERVER["DOCUMENT_ROOT"]."/ bitrix /modules/main/include/prolog_before.php");?>
Without all this, everything works
does not work
Answer the question
In order to leave comments, you need to log in
Try to use the full syntax to open the PHP code:
So the last line should look like this:
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
or
=Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question