Hi there, thanks for posting back.
I pretty much tried what you suggest..
I made a separate directory.
put in the php script
put in the htaccess
Then I called it from the main site with this script
<?php
if(!isset($mainfile)) {include("mainfile.php");}
$index=1;
include("secure/index.php");
?>
And it opens the file. even though it is htaccess protected.
I figured.. ok.. php is not ruled by apache.. as you said
Then I tried to access an html file in the same secure directory with this script.
<?php
if(!isset($mainfile)) {include("mainfile.php");}
$index=1;
include("secure/index.html");
?>
and I get this..
Warning: Failed opening 'secure/index.html' for inclusion (include_path='.:/usr/lib/php') in /home/friends/modules/address/index.php on line 7
I remove the htaccess file from the directory though.. and it works.
the html file comes up.
So I seem to be very good at making a php script ignore htaccess, or error on htaccess.
I can just spawn a new browser and do it that way.. I wanted it to be integrated into the site though.. I thought it would look cleaner. I'm still missing something.. got books on the way though 🙂
Thanks
Tim