← Desenvolvimento

Erro de script?

Lida 2335 vezes

Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Bom, é o seguinte, eu tenho aqui um script em php.

Citar
<? $act=$HTTP_GET_VARS['act'];
// Starting the server...
if ($act=="start")
{
$output=shell_exec("digosim/habbo/Server.exe start");
echo $output;
}
// Stopping the server...
elseif ($act=="stop")
{
$output = shell_exec("./Server.exe stop");
echo $output;
} ?>

E quando quero executa-lo, da este erro. Someone can help?

Warning: shell_exec() has been disabled for security reasons in /home/digosim/public_html/habbo/start.php on line 5
Offline

Gonçalo Martins 
Membro
Mensagens 229 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Atenta à configuração no php.ini

se googlares pelo erro deves encontrar mais info sobre o assunto e como o resolver!
Offline

skin 
Membro
Mensagens 200 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Avatar Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

O problema é que o safe_mode está on no teu servidor e por isso não te permite usares o shell_exec()
Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

O problema é que o safe_mode está on no teu servidor e por isso não te permite usares o shell_exec()
O que posso fazer então?
Offline

skin 
Membro
Mensagens 200 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Avatar Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Contacta o teu alojamento ou muda o código porque isso não vai dar.
Offline

Thomato 
Membro
Mensagens 4125 Gostos 3
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

Mais um habbo pirata >_>
Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Mais um habbo pirata >_>
LOOL! Longe disso! Estava apenas a tentar seguir um tutorial para o por 24h onn!