Link to home
Start Free TrialLog in
Avatar of jerrrrry
jerrrrry

asked on

follow the php mysql tuto and tells me what's wrong!

hello i'm following a tuto and it doesn't work, i ve not found a forum to solve my problem so i'm asking u to follow it by your side and tell me if it works for u or not, thanks
here is the  link
i have included in .zip my own trial
fromage.zip
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Following a whole tutorial to see if it works requires ususally more time than we can dedicate to a single question and overall it wouldn't grant a good answer: I could try the tutorial and say 'Yes it works fine for me.' and this would be a correct answer to your question - but do you really want to give me 500 points for this? :-)

As you know from your experience here at EE, you should follow these steps:

    - show use the code you're using (possibly using the 'code' tag EE makes available for you
    - tell us about errors, warnings and notices you get
    - describe accurately the problem: saying 'It doesn't work' doesn't tell us enough to guess what the problem is and more less tells us what it could  be the solution
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I downloaded the code from their Github page and installed it.  It works with the exception that the database user also needs INSERT privileges to 'register' a new user.  SELECT, UPDATE, and DELETE are not enough.
Avatar of jerrrrry
jerrrrry

ASKER

sorry, but what  Github page are you talking about?
tks
what  Github page...
Visit this URL (provided by the author in the original post):
http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL

Search the page for git

Find this link:
https://github.com/peredurabefrog/phpSecureLogin

Where you can read these quotes from the author:
I'VE ABANDONED THIS PROJECT AS MAINTAINING IT IS TAKING UP TOO MUCH OF MY TIME.

...CLOSE THE MASSIVE XSS HOLE...

THIS DOES WORK, BUT IT'S FAR FROM FINISHED!
This block of free, online PHP code is almost the "dictionary picture" or why I do not recommend copying code you do not completely understand.  That's PHP AntiPractice #1 -- just don't do that.  We all understand that it can be very time consuming to learn PHP and write your own code.  But when you don't have the time, your path to success will be much shorter if you choose one of the popular frameworks like Laravel.  Just grabbing a random hunk of PHP code from a random internet source is almost always a recipe for catastrophe.
ok thanks
Yes, the page mentioned by Ray.  I figured I test using the code from the tutorial and that's what I saw.
i had alook at the framework you said but does already made code exist for safe loging?

it seems really difficult for a beginner, i a newbie i understand php but i often ask for help, here it is a really new way with shell commands and so on i 'm a bit confused!