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 Link to comment https://forums.phpfreaks.com/topic/56954-headers-question/ Share on other sites More sharing options...
AbydosGater Posted June 25, 2007 Author Share Posted June 25, 2007 *Bumpidy Bump* ... Anyone? Link to comment https://forums.phpfreaks.com/topic/56954-headers-question/#findComment-282405 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.