You are here: Having trouble with custom php.ini file « PHP Programming Language « IT news, forums, messages
Having trouble with custom php.ini file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация