Jump to content

Start Server With shell_exec() ??


Recommended Posts

Posted

Hello all, Im trying to make an PHP script that will start the MTA:DM Server with the function: shell_exec()

But im not sure how to do this.

The server runs on linux: Ubuntu 7.10

The server is located in: /home/xtreme/MTA-Servers/DGC-DM

And the program i need to start = mta_server

Could someone help me with this?

Greatings Frank

Posted

<?php 
exec('/home/xtreme/MTA-Servers/DGC-DM/mta_server'); 
?> 
  

I think that will work, exec starts an executable, shell_exec is for a command.

Posted

<?phpexec('/home/xtreme/MTA-Servers/DGC-DM/mta_server');?> 

I think that will work, exec starts an executable, shell_exec is for a command.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...