JS vs PHP login systems
Moderator: General Moderators
JS vs PHP login systems
Hello again. Recently I was looking at 2 browser-based games, namely http://www.imperiaonline.org and http://www.bulfleet.com. I saw that their whole projects are written in JS(AJAX). Do you think JS/AJAX is better than PHP when we are talking about writting whole web projects? And second question is PHP the best(or only) solution to writting a log-in systems?
Re: JS vs PHP login systems
Looking at the first link you see that the file extension is .php 
Re: JS vs PHP login systems
Yes but I didn't find any php code in the source code. I've downloaded some of the pages from the server and saw only JS code.
Re: JS vs PHP login systems
http://www.w3schools.com/php/php_intro.asp
http://www.w3schools.com/Ajax/ajax_intro.asp
http://www.w3schools.com/jS/js_intro.aspPHP scripts are executed on the server
http://www.w3schools.com/Ajax/ajax_intro.asp
Re: JS vs PHP login systems
Does that mean you can't create a log-in app with JS/AJAX? 
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: JS vs PHP login systems
No, ofcourse it doesn't.
However, an entirely JS login would be very easily compromised.
However, an entirely JS login would be very easily compromised.
Re: JS vs PHP login systems
How come ? Because you can view the source. And even if it does, what can hapend. Note I am quite new 
Re: JS vs PHP login systems
Since to be entirely JS based it'd have to hard code the password
Re: JS vs PHP login systems
Creating jobs for people thoughjosh wrote:Since to be entirely JS based it'd have to hard code the password
You can also turn off JS in your browser which would make your login script fail.