exec()
proc_open()
"proc_open() has been disabled
exec() has been disabled
"
contacte con mi provedor de hosting pidiendo que active esas funciones en el php.ini
y me contestando que usara un php.ini personalizable
lo primero que se me vino a la cabeza ¿donde esta, en que carpeta?
busque en google y llege a aque yo mismo tengo que crearlo topandome con esto
Código:
Intente crear mi php.ini personalizable pero tambien pense que las funciones php no tienen un archivo por deafult por asi decir para poder ejecutarlas<?php
// Put all the php.ini parameters you want to change below. One per line.
// Follow the example format $parm[] = "parameter = value";
$parm[] = "register_globals = Off";
$parm[] = "session.use_trans_sid = 0";
$parm[] = "disable_functions ="
// full unix path - location of the default php.ini file at your host
// you can determine the location of the default file using phpinfo()
$defaultPath = "/usr/local/lib/php.ini";
// full unix path - location where you want your custom php.ini file
$customPath = "/home/ianimein/public_html/din/php.ini";
// nothing should change below this line.
if (file_exists($defaultPath)) {
$contents = file_get_contents($defaultPath);
$contents .= "\n\n; USER MODIFIED PARAMETERS FOLLOW\n\n";
foreach ($parm as $value) $contents .= $value . " \n";
if (file_put_contents($customPath,$contents)) {
if (chmod($customPath,0600)) $message = "The php.ini file has been modified and copied";
else $message = "Processing error - php.ini chmod failed";
} else {
$message = "Processing error - php.ini write failed";
}
} else {
$message = "Processing error - php.ini file not found";
}
echo $message;
?>
Tambien encontre que se pueden emular algunas funciones con .htaccess
¿se pueden emular exec() y proc_open() en un .htacess?
Bueno si alguien me puede ayudar a crear mi php.ini personalizable o a lograr que esas funciones corran se los agradeceria



