PHP/Java Question
Moderator: General Moderators
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
PHP/Java Question
Hello people of the forum,
I been messing with php for a while and came accross alot of stuff to do. Now i desided to try and get into making a game but only thing is i want it to be php/java setup now for php it will be login, and chat and getting the User's Stats now for the java it will be a text/button based it will be so users can fight one another now thats the part that i dont get.. i dont know if im on the right thread for this or not but i need help on making a java based text/button game that will be interlinked with php so that when a user wins a fight it will show..
You recieved 200 exp and 50 gold.
now if someone can help me with this please leave a post please
Thank you
CrazyPHPMan
I been messing with php for a while and came accross alot of stuff to do. Now i desided to try and get into making a game but only thing is i want it to be php/java setup now for php it will be login, and chat and getting the User's Stats now for the java it will be a text/button based it will be so users can fight one another now thats the part that i dont get.. i dont know if im on the right thread for this or not but i need help on making a java based text/button game that will be interlinked with php so that when a user wins a fight it will show..
You recieved 200 exp and 50 gold.
now if someone can help me with this please leave a post please
Thank you
CrazyPHPMan
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
php refreshes and you can add a delay just use header:
This refreshes to yoursite.com with 5 second delay.
Code: Select all
header( 'refresh: 5; url=http://yoursite.com' );-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
thats the reason why i want the fight part in java so it can have its own refresh script i would like to do the whole thing in java but never can find a tutorial that will help me learn how to build a java chat room :S unless one of you all know one good tutorial.. then all i would need is some help on making the fight script..
- christian_phpbeginner
- Forum Contributor
- Posts: 136
- Joined: Sat Jun 03, 2006 2:43 pm
- Location: Java
You can find a simple example of Java Chat System in Java programming books. A reference I've once used: Java 5, The Complete Reference. I am not saying that you have to buy the book, you could go to the library.CrazyPHPMan wrote:thats the reason why i want the fight part in java so it can have its own refresh script i would like to do the whole thing in java but never can find a tutorial that will help me learn how to build a java chat room :S unless one of you all know one good tutorial.. then all i would need is some help on making the fight script..
If I may suggest you, if you're going to create a game in a website, use Flash instead. Java takes more time to load rather than Flash Applications. PHP and Flash are somehow easier to connect.
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
Well i dont like using flash because for one alot of users are dial up users and flash it tends to get really laggy becuase of the the dial up speed and why would you use flash to make a small game thats only going to be used in one little spot where users fight each other? and anyways java really doesnt take that long to load and also it doesnt get laggy much as flash does when users are using dial up.. now i played alot of java games and a lot of flash and in my opinion flash sucks for games..
- christian_phpbeginner
- Forum Contributor
- Posts: 136
- Joined: Sat Jun 03, 2006 2:43 pm
- Location: Java
Fine, then, use Java....CrazyPHPMan wrote:Well i dont like using flash because for one alot of users are dial up users and flash it tends to get really laggy becuase of the the dial up speed and why would you use flash to make a small game thats only going to be used in one little spot where users fight each other? and anyways java really doesnt take that long to load and also it doesnt get laggy much as flash does when users are using dial up.. now i played alot of java games and a lot of flash and in my opinion flash sucks for games..
games in yahoo! use Applet, but it takes long to load. In my opinion, dial up sucks.
... ajax ...