server for vb.net application in php ?

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 832 Views - Last Post: 21 March 2011 - 05:05 PM Rate Topic: -----

#1 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

server for vb.net application in php ?

Posted 20 March 2011 - 12:57 AM

Hi im devloping an Visual Basic application but now i need to create the server it would be nice to let the server run 24/7 so i aksed my host i had asp.net hosting (i have readed it was necesarry) they said no so :S

but then i thought why not make it in php


but is that posible it would be a sort of textbased game where you battle each other (there for i should need a server)



Any body idea's?




Thanks


Arno(Cornetto456)

Is This A Good Question/Topic? 0
  • +

Replies To: server for vb.net application in php ?

#2 MrLuke187  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 80
  • View blog
  • Posts: 237
  • Joined: 09-July 10

Re: server for vb.net application in php ?

Posted 20 March 2011 - 05:59 AM

Browser games can be created using PHP.

But what you want to do sounds more like a Client-Server thing (using Sockets?). If so, PHP won't do that. If you want to host your own Server-Application, you'll need a root-Server (or at least a Server where you have access to the System (SSH) ).

Greetings: Luke
Was This Post Helpful? -1
  • +
  • -

#3 grimpirate  Icon User is offline

  • Pirate King
  • member icon

Reputation: 132
  • View blog
  • Posts: 673
  • Joined: 03-August 06

Re: server for vb.net application in php ?

Posted 20 March 2011 - 09:41 AM

PHP can create sockets, and thus you can create a server with it. However, it's not very efficient and there are languages better suited to that purpose.
Was This Post Helpful? 1
  • +
  • -

#4 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

Re: server for vb.net application in php ?

Posted 20 March 2011 - 09:45 AM

Which ?


Thx

This post has been edited by Dormilich: 20 March 2011 - 11:18 AM
Reason for edit:: spelling

Was This Post Helpful? 0
  • +
  • -

#5 MrLuke187  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 80
  • View blog
  • Posts: 237
  • Joined: 09-July 10

Re: server for vb.net application in php ?

Posted 20 March 2011 - 12:00 PM

Java, C++, Python, basically every language which supports communication over the Internet and has a Socket-Implementation.

Greetings: Luke
Was This Post Helpful? 1
  • +
  • -

#6 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

Re: server for vb.net application in php ?

Posted 20 March 2011 - 12:03 PM

Yes but i don't like to pay for things :P


So i payed for a webhost and have my domain and mysql and such...

but now im creating a app that needs a server for alot :S so i need it to run 24/7 but i thought making it in ruby on rails or php ?

with TCP and such


Good idea or bad idea ?


Thanks

Arno (Cornetto456)
Was This Post Helpful? 0
  • +
  • -

#7 MrLuke187  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 80
  • View blog
  • Posts: 237
  • Joined: 09-July 10

Re: server for vb.net application in php ?

Posted 20 March 2011 - 12:18 PM

View Postcornetto456, on 20 March 2011 - 08:03 PM, said:

Yes but i don't like to pay for things :P

You could simply use a PC at your home and make it run the server. Open a Port on your Router and you have it for free...

Greetings: Luke
Was This Post Helpful? 0
  • +
  • -

#8 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

Re: server for vb.net application in php ?

Posted 20 March 2011 - 01:09 PM

And can i make it also in a java aplet ?



Thanks


Arno(Cornetto456)
Was This Post Helpful? 0
  • +
  • -

#9 JaKWaC  Icon User is offline

  • D.I.C Head

Reputation: 76
  • View blog
  • Posts: 232
  • Joined: 15-November 10

Re: server for vb.net application in php ?

Posted 20 March 2011 - 01:14 PM

What exactly is going to be the role of your server application? If the game doesn't require a low latency you could fairly easily create a RESTful API and use that as your "server".
Was This Post Helpful? 2
  • +
  • -

#10 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

Re: server for vb.net application in php ?

Posted 20 March 2011 - 01:16 PM

It would be a game with yea powers and such but evry match that evry user plays will be done on one server so that server will be important but i thought Sockets where good but some people say not witch other possibilities are there ? like winsocket's p2p but what's more ?



Thanks


EDIT : i would like to run it on a website

Arno(Cornetto456)

This post has been edited by cornetto456: 20 March 2011 - 01:20 PM

Was This Post Helpful? 0
  • +
  • -

#11 MrLuke187  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 80
  • View blog
  • Posts: 237
  • Joined: 09-July 10

Re: server for vb.net application in php ?

Posted 21 March 2011 - 04:39 AM

An Applet doesn't run on a Server, it runs in the Browser (the JVM of the client PC).

For what you describe, Sockets are maybe the best solution. But if you want to do it with Sockets, you're going to need a Root-Server and a Server-Application (in Java for example) which runs on it. Depending on the number of players, the Server needs much power and a great Bandwidth. And you don't get this for free ;)

Greetings: Luke
Was This Post Helpful? 0
  • +
  • -

#12 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

Re: server for vb.net application in php ?

Posted 21 March 2011 - 06:16 AM

View PostMrLuke187, on 21 March 2011 - 04:39 AM, said:

An Applet doesn't run on a Server, it runs in the Browser (the JVM of the client PC).

For what you describe, Sockets are maybe the best solution. But if you want to do it with Sockets, you're going to need a Root-Server and a Server-Application (in Java for example) which runs on it. Depending on the number of players, the Server needs much power and a great Bandwidth. And you don't get this for free ;)

Greetings: Luke

Oke ,

But i thought making the applet run om my webserver (always) don't know if that's possible but ...

and then my applet would be a server/client (the client is my vb.net app) and then yea run it

but my server is needed for making each batlle and if the user atacks with something normal then the int 1 will be given to the server and then the other user will be seen a normal atack ;)


But i can't make it in java to run it alway's ? (on my webserver & if that's not working i could use php ? )



Thanks



Arno(Cornetto456)
Was This Post Helpful? 0
  • +
  • -

#13 MrLuke187  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 80
  • View blog
  • Posts: 237
  • Joined: 09-July 10

Re: server for vb.net application in php ?

Posted 21 March 2011 - 06:27 AM

Okay, Applets don't run on servers, they run on the client. Besides, Applets are only allowed to create a Socket-Communication with the Server thy came from (but if you sign them, they can do more).

Also, i don't get what you want:
You want a Server that the game can be played on. How does your .NET-Application connect to this Server? If it's using Sockets, you can implement the Server in any Language which supports Sockets.

Also, if you want to have this Server 24/7 running, you'll need to pay for it (and you'll need SSH access to manage the Server).

Greetings: Luke
Was This Post Helpful? 0
  • +
  • -

#14 JaKWaC  Icon User is offline

  • D.I.C Head

Reputation: 76
  • View blog
  • Posts: 232
  • Joined: 15-November 10

Re: server for vb.net application in php ?

Posted 21 March 2011 - 10:33 AM

Who are you hosting through? Depending on your budget you could look at moving to a host that supports long running processes. Or you could even look at getting a small VDS.
Was This Post Helpful? 0
  • +
  • -

#15 cornetto456  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 437
  • Joined: 03-January 11

Re: server for vb.net application in php ?

Posted 21 March 2011 - 10:48 AM

Oke, but im not that old to buy stuff (14) so i asked at my dad but he said no.


but if i make it like this a php script as server the applet as GUI for turning maintace on and such and when you need to connect to the server a invisible browser pointing to the website where the server script is ?

could that be done


And my host is hosting24.com


and hosting on my own pc isn't posible because i got only one pc and i live in europe so if my friends from america want to play they have to get up early :S

so is the above idea possible to make ?


thanks



arno(Cornetto456)
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2