PDA

View Full Version : PHP CHESS ONLINE, how to make it free for all?



frenchn00b
August 1st, 2010, 10:18 PM
Hello,

I have this code. I would like that one can play without SQL nor sending email, that it only says who played the last, and it is enough, on the page

http://webscripts.softpedia.com/script/PHP-Clases/PHP-Chess-classes-20084.html

Hellkeepa
August 2nd, 2010, 12:37 AM
HELLo!

I recommend you start here (http://no.php.net/manual/en/index.php) then, also you might want to find yourself a PHP tutorial.
However, do keep in mind that almost none of the tutorials consider security of any kind. The only one I found, was PHP.net's tutorial (which is in the manual), but that was a bit too short to be useful. So, please do everyone (yourself, your users, those that view your site, and everyone else online) the favour of making sure your app is secure before releasing it on the internet.

Happy codin'!

iMisspell
August 2nd, 2010, 04:26 AM
...without SQL nor sending email...
Not looking at the code, you could probably use a text file(s) to save/store the data instead of a data-base-engine.

Being PHP is a server side language, the only way i can think to get around sending off an email would be to (auto) refresh and check if a move has been made.

Ive never look for any thing like this but, it might be easyer to find a java based chess game.

_

frenchn00b
August 2nd, 2010, 04:22 PM
Not looking at the code, you could probably use a text file(s) to save/store the data instead of a data-base-engine.

Being PHP is a server side language, the only way i can think to get around sending off an email would be to (auto) refresh and check if a move has been made.

Ive never look for any thing like this but, it might be easyer to find a java based chess game.

_

well, java is less flexible
this php code is very flexible cuz it has already the bitmaps of the chess board + soldiers

it is just to change this class.php file and adapt example.php
which remains easy for most of u guys that code php usually.

surprinsngly no one publish such easy things cuz all coders want business and make money from their code.

Hence such easy code is not being found on internet without paying

Linux is great man, it is free, and all contribute to that.

frenchn00b
August 5th, 2010, 09:40 PM
I foudn a online chess game, without passwords:
http://webscripts.softpedia.com/script/Games/Two-Players-Chess-22872.html

but it seems not to be compatible with linux iceweasel / firefox. Does it work for you? Is it only for windows XP?

simeon87
August 6th, 2010, 11:02 AM
well, java is less flexible
this php code is very flexible cuz it has already the bitmaps of the chess board + soldiers

Bitmaps can be loaded in Java as well. Either way that's not an indication that PHP is more flexible than Java.

frenchn00b
August 6th, 2010, 01:43 PM
Bitmaps can be loaded in Java as well. Either way that's not an indication that PHP is more flexible than Java.

I think that hmtl chess game is the best, it has highest comaptibility normally, well, in case php is improved ,but IE4 would be fantastic to have a code:

friend move it
it save it into the folder
e4d5-r6d7
...
and anyone can follow and play

http://webscripts.softpedia.com/script/Games/Two-Players-Chess-22872.html

interval1066
August 7th, 2010, 12:19 AM
How come you want fewer features? Just sayin...

frenchn00b
August 7th, 2010, 09:14 PM
How come you want fewer features? Just sayin...

it would be great a higher compatibility for friends:

no login

just click on link and play and no java to be installed

simeon87
August 8th, 2010, 01:28 AM
it would be great a higher compatibility for friends:

no login

just click on link and play and no java to be installed

Progress has always been forward, not backward. You probably want to move towards HTML 5 which is the way forward and can also do that: a chess game in HTML without a login, etc.