Jump to content

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


Kaamos

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 months later...

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
    }

Link to comment
Share on other sites

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