July 17th, 2000, 08:18 AM
How can I have permissions to delete a file?
I have to delete a file, but I don't to public users have permission to delete that file but, with a certain "login" they can...
Sorry my bad english...
July 17th, 2000, 09:28 AM
if ($entered_username = $access_username) :
if ($entered_password = $access_password):
$blah blah; #do whatever the action is
else PRINT "Bad Password";
else PRINT "Bad User Name";
This is a simple if else statement that should do it. If you want multiple users to be able to do it you'll need to come up with either a different way to check it or a loop to check multiple times.