View Full Version : The exec() function is disabled in your PHP by the disabled_functions parameter in ph
11-06-2010, 03:35 AM
how do i enable exec() in php.ini? where is php.ini? cant find it in the directories in my site.
11-06-2010, 04:24 AM
can i at least view the values in php.ini?
11-06-2010, 04:27 AM
<?php phpinfo(); ?>
</html> Make a page with that code, name it test.php, upload it to your site and open it with your browser. It should tell you how the php is configured.
11-06-2010, 04:49 AM
ok but suppose i override these values with an htaccess file or a second php.ini file. which values will be output
11-06-2010, 04:54 AM
ok but suppose i override these values with an htaccess file or a second php.ini file. which values will be outputIs this your own server or a webhost server? If a webhost, it all depends on the host's settings. We can't tell you before you try it.
11-06-2010, 04:40 PM
Not all settings can be changed everywhere:
exec() is commonly disabled for security reasons, but it is still possible to get directory sizes. Check the Filesystem (http://php.net/ref.filesystem) functions and comments.
11-06-2010, 06:30 PM
If you are on a shared server and your webhost has apache running under safe mode then you should not be able to override the php.ini settings set by your webhost.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.