Y
Y
Yuri Tatarkin2016-08-12 22:14:09
PHP
Yuri Tatarkin, 2016-08-12 22:14:09

Why does the code work 2 times?

On the opencart 2 installation, a directory was created in the root of the site. For example, test which contains the index.php file with the following content.

<?php
include_once('../index.php');
?>

The default index.php from cms is included. When opening domain.ru/test/ the code works 2 times. In the logs, all entries are duplicated. 2 times all requests in bd are executed.
When opening domain.ru/ directly, the code works only 1 time.
How does this happen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yury Tatarkin, 2016-08-13
@tomasoyer

Reason found. Here is a tag
Causes the browser to load the current page as an image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question