D
D
DestroyerZzz2015-10-06 09:21:43
PHP
DestroyerZzz, 2015-10-06 09:21:43

How to include an absolute link to a file?

It is included in this way, but it must be an absolute link. It is necessary to include URL_INCLUDE there something like that. How to do it?

<? 
include 'modules/menu.php';
?>

Or how to tell the include to take from the root folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
javanub, 2015-10-06
@DestroyerZzz

$_SERVER['DOCUMENT_ROOT'] . 'modules/menu.php';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question