PDA

View Full Version : How do I do this?


sphinx
04-23-2008, 02:50 PM
Hi,

I want to use this php script:

http://www.zubrag.com/scripts/password-protect.php

To protect the link:

www.sphinx.ulmb.com/linerider,

How would I do it? Im new to php.

The easier version of this is here:

http://www.zubrag.com/forum/index.php?topic=45.0

Please can someone give me a step by step. Thanks

Tyler
04-23-2008, 08:50 PM
Did you read http://www.zubrag.com/scripts/password-protect.php ?

It says exactly how to set it up, in great detail.

sphinx
04-24-2008, 07:08 AM
I dont understand what do put for this bit:

<?php include("/home/haveahobby/htdocs/protector/password_protect.php"); ?>

It said peoples will be different.

Victor01469
04-24-2008, 07:46 AM
That's called an absolute directory address, you need to start off with your home directory, located in the control panel, under "My Websites". Click site info for the site you are installing this on, and copy in the home directory. Be sure to complete the directory address with the location of the appropriate file. For example, your full directory might be something like:

/hosted/subs/ulmb.com/s/p/sphinx/public_html/protector/password_protect.php

Good luck!

sphinx
04-24-2008, 08:17 AM
Do I upload password_protect.php to my root or where I want it to protect?

Tyler
04-24-2008, 01:13 PM
You can put it anywhere you really want. I would keep it in the same folder (but change the file name).