PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
how do i make my php script randomally generate a code using numbers and then have the form verify that the code is right and continue the login.
Kind of like phpnuke when you log in it asks for a username and password and asks you to type in that number it generates and then it allows you to login.
Thats exactley what i want, all help is appreciated.
readfile just tosses the file at the browser. If you want to save alterations that you make to a file, you'll need to use a combination of [php_man]fopen[/php_man]/[php_man]fwrite[/php_man]/[php_man]fclose[/php_man], or using regular expressions, but that can be complicated...