[UPHPU] PHP Password Protect
Webot Graphics
graphics at westernbotanicals.com
Tue Dec 12 13:52:37 MST 2006
Thank you Jacob that was exactly what the problem was. That was a
simple answer.
Sorry if I wasn't clear enough for the rest of you.
Justin Giboney
graphics at westernbotanicals.com
On Dec 12, 2006, at 1:45 PM, Jacob Wright wrote:
> You don't need it in an HTML page. You can just use your PHP page.
> Then the PHP will work fine.
>
> From what I see, you are trying to use two technologies. You are
> using:
>
> <!--#include virtual="/includes/mainhdr.inc" -->
>
> and:
>
> <?php .... ?>
>
> The HTML includes which apache does (I think that's who's taking
> care of the first instance) work on HTML page. The PHP works on PHP
> pages. So, you need to replace:
>
> <!--#include virtual="/includes/mainhdr.inc" -->
>
> with:
>
> <?php include("../includes/mainhdr.inc") ?>
>
> and your problem will then be solved. PHP does great for template
> stuff like this. That's what it was originally created for.
>
> --
> Jacob Wright
> Within Code LLC
More information about the UPHPU
mailing list