Posted by laredotornado@zipmail.com on 06/26/07 23:34
Hi,
My hosting company claims I can create php.ini files besides the
master one. So I have created this file
/web_root/php.ini
containing
register_globals = on
post_max_size = 20M
memory_limit = 80M
upload_max_filesize = 20M
max_execution_time = 120
expose_php=off
auto_prepend_file = /web_root/subdir1/phpconfig.php
and the contents of /web_root/subdir1/phpconfig.php are
<?php
$_SERVER['DOCUMENT_ROOT'] = '/home/foo/whatever';
?>
but when I visit the file /web_root/subdir1/test.php which contains
<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>
The string "/home/foo/whatever" is NOT printed to the screen. What is
wrong with the sequence above?
Thanks, - Dave
Navigation:
[Reply to this message]
|