Re: using disable_functions silently
| From: | Craige Leeder | Date: | Thu, 23 Aug 2007 07:01:17 +0000 |
| Subject: | Re: using disable_functions silently | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261152@lists.php.net to get a copy of this message | ||
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
>
>