putenv in safe mode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello;

the following begins with the error generated by the following code

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'GDFONTPATH' - it's not in the allowed list in / var/www/vhosts/jekillen.com/httpdocs/view/cap/class/capClass.php on line 32
/*
class _CAP
      {
private static $_relPath = 'cap/class/'; // **** set for environment private static $_codeLen = 0; // set in capClassGLBS.php, currently 6
        private static $_fontPath = '';
        private static $_fontList = array();
        private static $_CODE = '';
        private static $_STRLST = array();
        public function __construct($_cdLen)
               {
                self::$_codeLen = $_cdLen;
                self::$_fontPath = realpath('cap/ttf_font');
                require_once($_relPath.'capClassDef.php');
                require_once($_relPath.'capClassGLBS.php');
putenv('GDFONTPATH='. realpath('cap/ttf_font'));//// <<<<<---
                self::$_fontList = $font;
                require_once($_relPath.'authenticationClss.php'); //
                self::$_CODE = new authenticate();
                self::$_STRLST = $_charLst;
               }
*/
Do I have to get php.ini files edited to get around this?
Server is on remote hosting service server so I don't
have access to server admin functions.

I have no experience with php.ini other that initial
configurations and I don't remember if there can
be a local php.ini file (I think that is the right file name)

Thanks for time and attention
JK

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux