Jump to content

[Solved] Warning: exec() has been disabled for security reasons in


Recommended Posts

Posted

Please do me a favor and spell out your words.

 

No the execute is disabled system wide. What do you need it for anyway?

 

Posted

Heliohost has disabled:

 

# Bz2

 

# dBase

 

# Magic Quotes

 

# MM

 

# SNMP

 

# WDDX

 

and

 

exec(), shell_exec(), proc_open(), and system().

 

therefore i have poblem with my script.. i get the error: Warning: exec() has been disabled for security reasons in...

 

my question is: can you kindly enable this?

 

sorry for my bad english i hope you have understand.

 

thanks & regards.

Posted

Just like the error message says, we don't allow those functions because of security reasons. Sorry! :(

 

 

  • 2 months later...
Posted

Hello, I'm new here. Thank you for the free hosting. Does your server support Magento? From the sound of this post, it does not.

Posted

Hey there, i read this topic, and i need the exec() for my modulesystem to execute the sql files on the server, it is the esiest way, but if that wouldn't going to allowed, i need another possible methode to run sql files on the server, if a new module need to add new tables

 

    class base_mainmodule {
        protected $sqlobj = NULL;
        
        public function __construct($sqlobj/*SQL Adapter*/,$parms/*Array*/ = null) {
            $this->sqlobj = $sqlobj;
        }
    
        public function installSQL($modulename/*string*/, $file/*string*/) {
            $dbhost = $this->sqlobj->gethost();
            $dbuser = $this->sqlobj->getuser();
            $dbpass = $this->sqlobj->getname();
            $db = $this->sqlobj->getdb();
            
            if ($dbpass != '') {
                $cmd = '/usr/bin/mysql -h '.$dbhost.' -u '.$dbuser.' -p '.$dbpass.' < '.$file;
            } else {
                $cmd = '/usr/bin/mysql -h '.$dbhost.' -u '.$dbuser.' < '.$file;
            }
            exec($cmd,$out,$retval);
        }
        
        public function configSQL(); //Fills the Table with initialvalues
        public function installXML(); //Saves the Module information in the Main config File
        public function cache(); //Cache some informations
    }

Guest
This topic is now closed to further replies.
×
×
  • Create New...