S
S
Shaheen2022-03-29 13:05:23
PHP
Shaheen, 2022-03-29 13:05:23

How to overwrite the code if instead of http there is https?

There is a code:

$app_path = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";


How to overwrite it if there is https instead of http?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question