Zubrag.com :: Forum

Programmers Lounge => PHP / MySql / Smarty Questions => Topic started by: Ginger on May 12, 2008, 08:31:05 AM



Title: Password_protect - What is wrong with this...?
Post by: Ginger on May 12, 2008, 08:31:05 AM
<?php include("/var/www/juanscott.com/password_protect.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
etc

What is wrong with this? I seem to be doing everything I'm told but I'm not getting a password box/page.
can anyone help?


Title: Re: Password_protect - What is wrong with this...?
Post by: PapaBearPW on May 13, 2008, 03:42:05 AM
If you can provide a link to the page, maybe I could take a look.


Title: Re: Password_protect - What is wrong with this...?
Post by: PapaBearPW on May 13, 2008, 04:50:59 AM
Then again, don't! Just thought about that a sec and since this is a page you want password protected...lol...would be rather silly to post a link to it while it's still unprotected.  :-\

Is this a php file? If the file has a .html/.htm ending, the php section will not be parsed on the server. Are you getting any kind of errors or is the php include section being displayed as plain text on the page?

Edit: I take it you did get php enabled by your Host after all?