Was wondering how i would go about implementing this.

Discussion in 'PHP' started by -Jerry, Aug 6, 2011.

  1. #1
    A web page where it lets you customize things which in turn changes around files and downloads.

      
     @echo off "[Java directory]" -Xms1024M -Xmx1024M -jar [tick a box].jar nogui pause
    Code (markup):
       [Java Directory] Press Choose Directory, it opens up a form where you can find where your java.exe is located once you've selected it, it takes the link to it's directory, lets use
    '%programFiles(x86)%\Java\jre6\bin\java.exe'
    Code (markup):
    as an example. It then substitutes the directory into the [Java directory].

    [tick a box] 2 Options will be given, a normal server or modded server.
    If you tick a normal server it will change [tickabox] to minecraftserver.jar
    If you tick the modded server it will change [tick a box] to craftbukkit-0.0.1-SNAPSHOT

      Example;
      
     
    @echo off 
    "[Java directory]" -Xms1024M -Xmx1024M -jar [tick a box].jar nogui 
    pause
    Code (markup):
     
     
    
    @echo off 
    "%programFiles(x86)%\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar minecraft_Server.jar nogui 
    pause
    Code (markup):
    Then lastly it gives the option to where your server will be located;
    Once chosen this will then download the server folder including;

    the bat file which it auto edited above with the [java directory] and [tick a box]
    a .jar file from a direct link

    Was wondering is this all possible with php? and where would i go from first?

    I am completely new to php and was wondering if this was possible and where i would go from to start. Like would i learn about CMS, Forms etc.

    Thanks in advance for all advice and insight! 
     
     
    Last edited: Aug 6, 2011
    -Jerry, Aug 6, 2011 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    EricBruggema, Aug 8, 2011 IP
  3. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #3
    It looks like your using dos commands. I think perhaps a ajax/php (ruby on rails) system would be the best way to do this for you. This is how the file stuff is done in the WHM/Cpanel for servers. In this case it would be for a windows box. You would have to setup the right permission and make really sure you make it very secure. i wish you good luck on your long road ahead of you.
     
    exodus, Aug 8, 2011 IP
  4. -Jerry

    -Jerry Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the replies guys greatly appreciated!

    Do you think it would be best if i just got a friend to do it in installer form? would it be way more easier and logical to do it installer form then web form> 
     
    -Jerry, Aug 8, 2011 IP
  5. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Do what is the easy thing to do. No need to make it more complicated then you need it to be.
     
    exodus, Aug 8, 2011 IP