sendr2020-09-18 14:30:16
sendr, 2020-09-18 14:30:16

1c-bitrix, why just die()?

Why in 1c-bitrix on the first line of files that need to be hidden from direct access via url, just use die();
, not
header('Location: Address ');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
FanatPHP, 2020-09-18

firstly, not "from direct access", from execution
; secondly, these are absolutely meaningless gestures. no need to look at the 1-s-bitrix code, thirdly, you will become a goat
, why is there some kind of header('Location: Address');? What's the point of this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question