[PHP] disable_functions per vhost on apache

2004-12-21 Thread Eduardo M. Bragatto
Hi folks,
	according to this old message 
[http://www.mail-archive.com/php-general@lists.php.net/msg87293.html] 
it's not possible to use php_value disable_functions on Apache's vhost.
	Since this message is two years old I would like to know if it's still 
being true.
	I have to allow system() for my control center script but I don't want 
my users to use it.
	How can I do it?

--
Best regards,
Eduardo M. Bragatto.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] disable_functions per vhost on apache

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 02:42, Eduardo M. Bragatto wrote:

  according to this old message
 [http://www.mail-archive.com/php-general@lists.php.net/msg87293.html]
 it's not possible to use php_value disable_functions on Apache's vhost.
  Since this message is two years old I would like to know if it's still
 being true.
  I have to allow system() for my control center script but I don't want
 my users to use it.
  How can I do it?

For what can be set and where, outside of php.ini, look at the manual entry 
for ini_set().

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
It's amazing how nice people are to you when they know you're going away.
  -- Michael Arlen
*/

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



Re: [PHP] disable_functions per vhost on apache

2004-12-21 Thread John Nichel
Eduardo M. Bragatto wrote:
Hi folks,
according to this old message 
[http://www.mail-archive.com/php-general@lists.php.net/msg87293.html] 
it's not possible to use php_value disable_functions on Apache's vhost.
Since this message is two years old I would like to know if it's 
still being true.
Yes, it's still true, as this value can only be set in the php.ini file.
http://us4.php.net/manual/en/features.safe-mode.php#ini.disable-functions
I have to allow system() for my control center script but I don't 
want my users to use it.
How can I do it?
You'd have to run two instances of Apache, with a seperate php.ini for 
each version.  One for the vhosts with the functions disabled, and the 
other for your control center.  Unless someone knows of a way to use 
different ini's per vhost.

Sucks, but it's about the best you could do.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php