Well, it goes like this -
I tried using the fopen function in basic form to print the file to the page before it hit the browser, so that it wouldn't put up the "secure/unsecure" warning...like this
<?php
$fp = fopen( "footer.txt", 'r' );
?>
but I didn't get any results - meaning the file did not appear included on the page at all. Then I tried using a different approach
<?php
( $fp = fopen( "footer.txt", 'r' ) ) or die ("Couldn't open the file, sorry" );
?>
...still no results (I could have done something wrong there because I'm VERY new to PHP. I've only built basic formmail scripts so far.
Then, I tried this approach
<?php
$filename = "../footer.txt";
$fp = fopen( $filename, 'r' ) or die("Couldn't open $filename" );
while ( ! feof( $fp ) ) {
$line = fgets( $fp, 2050 );
print "$line";
}
fclose( $fp );
?>
and I got RESULTS! Except, I'm back to square 1 because now the "secure/unsecure" warning is showing again!! Although, I did NOT get them when the files did not write to the page....soooo...they must be what's considered "unsecure" on the page, right?
Any more suggestions?
Thanks,
-TC