M
M
Michael2015-10-08 14:56:14
PHP
Michael, 2015-10-08 14:56:14

How can a value be added to $_SERVER?

Good afternoon!
The site code uses $_SERVER['PHPROOT'] - the path to the folder with the site, but I don't have such a key at all and it turns out that the whole code does not work.
the problem is that I can't just set $_SERVER['PHPROOT'] = 'path to the folder on my computer'; since this part of the code cannot be touched :) can you specify something in the server settings? php 5.3 apache 2.2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petrov, 2015-10-08
@EvgenZZ

install xampp

S
shagguboy, 2015-10-08
@shagguboy

.htaccess
php_value PHPROOT "/home/site"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question