PDA

View Full Version : .htaccess to Flash



birdboy0103
June 4th, 2004, 03:19 PM
Is it possible to get a flash login to interface with .htaccess and .htpassw (or whatever it is?)

Thanks very much

Marble
June 4th, 2004, 05:44 PM
Not that I know of. What is it you are trying to do? There might be other methods to get what you want...

birdboy0103
June 4th, 2004, 06:12 PM
I've got an htaccess protected website, and i really want to use it, because it keeps all my data and error handling in one file... i can support php and CGI, but if i have to, i'd rather use php...and it should be secure...if possible

ahmed
June 4th, 2004, 06:20 PM
you can, but it'll have to be placed outside the protected folder.

since accessing a folder can be done through

http//<username>:<password>@mywebsite.com/myfolder

Set up two fields, instance names username, and password. Then, the login button (call it myButton) should have this action:


myButton.onRelease () {

getURL("http://" + username.text + ":" + password.text + "@mywebsite.com/myfolder", "_self" );

}

Hope that helps :)

CyanBlue
June 4th, 2004, 08:09 PM
Then, the login information will be visible to whoever can click on that myButton, right???

ahmed
June 4th, 2004, 10:15 PM
When you press myButton, it takes you to the folder's index, with the password you enter and username you entered as part of the url... does that answer your question? :)

CyanBlue
June 4th, 2004, 10:36 PM
Yup... Thanks for the confirmation... :)