Zubrag.com
May 22, 2012, 09:26:41 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: this PHP is exactly what i need! wish i could make it work  (Read 1466 times)
ssaymkcil
Newbie
*
Posts: 1


« on: August 24, 2010, 07:56:53 am »

Downloaded file
modified user and password

up loaded file
here
http://lanecoburn.com/lcaflash/password_protect.php

did the  ?help

Include following code into every page you would like to protect, at the very beginning (first line):
<?php include("d:\\hosting\\dogonsi\\lcaflash\\password_protect.php"); ?>

then i added <?php include("d:\\hosting\\dogonsi\\lcaflash\\password_protect.php"); ?> to my file

if you do a view source you can see it here

http://lanecoburn.com/lcaflash/password.html


but is does not work!

any help would be GREATLY appreciated!


Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: August 25, 2010, 06:17:18 am »

It can only protect php pages.
1. Rename http://lanecoburn.com/lcaflash/password.html to http://lanecoburn.com/lcaflash/password.php
2. put following at the top (MUST BE 1st line without spaces ahead) of the http://lanecoburn.com/lcaflash/password.php

<?php include("d:\\hosting\\dogonsi\\lcaflash\\password_protect.php"); ?>
Logged
bacnupe
Newbie
*
Posts: 1


« Reply #2 on: October 28, 2010, 11:59:35 am »

Can't get php to work either.  Am I reading this correctly that the page requiring protection must be a .php page?  My page is currently .htm but have also saved as a php; inserted generated code at the top of both htm and php pages but still cant get it to work.  Any ideas???
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC