Click to See Complete Forum and Search --> : Taking a javascript (or two) and converting to PHP. is it more secure?
tinfoilhat
09-23-2004, 03:27 PM
Look at the Javascript on this page:
http://www.phoenixsoftware.com/Falcon/Falcon32/DownloadF32/
How would one perform the same functions using PHP? Would it be more secure?
Thanks in advance.
AdamGundry
09-23-2004, 03:31 PM
I'll not go in to great detail, but basically you would have a PHP script to check the password (which could come from a file or database) and then provide a page listing available downloads. It would probably not be significantly more secure (at the moment, your security is handled by the FTP server, not JavaScript) but it would be much more usable and would work even for users with JavaScript disabled.
Adam
artemis
09-23-2004, 03:36 PM
the very nature of PHP is more secure as it is processed sever-side which means that the users computer never sees the PHP code, unlike JavaScript.