[Off] їComo puedo conectar mi VPS(SSH) por PHP?
#5

Puedes hacerlo simplemente con la funciуn exec o system de php
PHP код:
function apagarServer() {
    
system("pkill samp03svr");
}
function 
prenderServer() {
    
system("cd /server");
    
system("nohup ./samp03svr &");
}
function 
reiniciarServer() {
    
apagarServer();
    
prenderServer();

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)