ChrisMartino Posted May 23, 2010 Share Posted May 23, 2010 Hey there, Well i was wondering if there was some way i could do this, In my control panel it starts the server by using the following command format in php: $ssh->exec('some linux command here'); Now when I want to start the server i want to edit the values in the server.xml that holds the port information and max player information, Here is the server.xml that i would need to edit: <settings> <!-- Port the server will listen on --> <port>9999</port> <!-- Maximum number of players the server will support (Max 32) --> <maxplayers>32</maxplayers> <!-- Maximum number of vehicles the server will support (Max 100) --> <maxvehicles>100</maxvehicles> <!-- Password clients will have to enter to connect --> <!--password>None</password--> <!-- Add the server to the master list --> <listed>false</listed> <!-- The hostname players will see --> <hostname>[~]- IV-Freeroam -[~]</hostname> <!-- The address the server will bind to --> <!-- hostaddress>127.0.0.1</hostaddress--> <!-- The scripts the server will load and run --> <script>Freeroam.nut</script> </settings> I would need to edit it via the command line linux but i don't know how to change the value of the max players and port each time i start the server, Dose anyone have a idea. Link to comment https://forums.phpfreaks.com/topic/202648-editing-xml-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.