Re: using disable_functions silently

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

 



Are you *running* a shared hosting environment? If so, what is to stop
you from adding the exec() function to the list in php.ini?

- Craige

> > Don't think so. The code just needs to handle it better. I do it like
> > this:
> >
> > $disabled_functions = explode(',', str_replace(' ', '',
> > ini_get('disable_functions')));
> >
> > if (!in_array('set_time_limit', $disabled_functions)) {
> >     set_time_limit(0);
> > }
> >
> > Works every time :)
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
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