AbydosGater Posted June 24, 2007 Share Posted June 24, 2007 Hey Guys, Im trying to write a script..two lines should do it..that would auto log me into my .htaccess protected directory.. I posted awhile back about what headers there were to be used.. I know i need to change the location with the Location header.. and to login use the "Authorization:" Header.. I thought the following should work: <? header("Location: MyDirectory"); header("Authorization: BASIC cm9vdDpVckFOMDBiNFJlYWRpblRoaXM="); ?> But Its not working.. I think its the way im sending the headers.. Anyone any ideas that could help me fix? Thanks Quote Link to comment Share on other sites More sharing options...
AbydosGater Posted June 25, 2007 Author Share Posted June 25, 2007 *Bumpidy Bump* ... Anyone? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.