M
M
mirexdoors2018-04-04 09:01:08
PHP
mirexdoors, 2018-04-04 09:01:08

Why don't include and require work on the server?

Wrote a script in PHP. Everything works fine on the local OpenServer. I threw it on the Beget host - an error occurs

require(/**/public_html/vendor/zendframework/zend-dom/src/Query.php): failed to open stream: No such file or directory in ...

Rights to folders 0755, files 0644

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Lyskov, 2018-04-04
@mirexdoors

$_SERVER['DOCUMENT_ROOT'].'/vendor/...'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question