I'm working on a project for my website, where you can copy/paste or upload fan fiction stories onto the main site. I'm fairly new to PHP, only a couple of months of experience, but I can get most of the main things done, but there are just a lot of little bugs in my make user and login scripts.
For making the user, I make a directory of the username desired for them to store all their work, and put in a user.txt file with all the user info (encrypted), I can do all of that fine, but I can't delete the directories, or CHMOD them, all I get is an access denied. Should I do that, or should I store all the usernames/passwords/emails in 1 big users file? If so, who would I read from it?
ThanksIt depends on how much info you need to store... If it is just a user/padd/email you may place it in one file... Also You may search for user/login scripts and use a existing one... For rxample "Authorizer"lot less hassle to use mysql, but that is just me.
how are you trying to chmod?I try to CHMOD it with my FTP client, but it just says that I can't do that, something to do with the directories, which I can't CHMOD either. They're supposed to be 777, but they aren't for some reason.
The reason I'm using files is because i'm really not that good with MySQL in php, but I might consider learning it for the username/password, but I want stories and uploaded stuff kept in a usernames private folder.then if you are creating your folders and stuff within php you need to unmask() and then unmask() again
$oldmask = umask(0);
mkdir ($dir, 0777);
umask($oldmask);
For making the user, I make a directory of the username desired for them to store all their work, and put in a user.txt file with all the user info (encrypted), I can do all of that fine, but I can't delete the directories, or CHMOD them, all I get is an access denied. Should I do that, or should I store all the usernames/passwords/emails in 1 big users file? If so, who would I read from it?
ThanksIt depends on how much info you need to store... If it is just a user/padd/email you may place it in one file... Also You may search for user/login scripts and use a existing one... For rxample "Authorizer"lot less hassle to use mysql, but that is just me.
how are you trying to chmod?I try to CHMOD it with my FTP client, but it just says that I can't do that, something to do with the directories, which I can't CHMOD either. They're supposed to be 777, but they aren't for some reason.
The reason I'm using files is because i'm really not that good with MySQL in php, but I might consider learning it for the username/password, but I want stories and uploaded stuff kept in a usernames private folder.then if you are creating your folders and stuff within php you need to unmask() and then unmask() again
$oldmask = umask(0);
mkdir ($dir, 0777);
umask($oldmask);