GetDotted Domains

Viewing Thread:
"PHP and protected directories"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sun 20/07/03 at 12:00
Regular
Posts: 787
Hi

I'm trying out a hosting package that allows me to protect directories. I can see how this prevents people accessing the pages in that directory, cos you get asked for a username and password.

But ... would I be able to write a PHP script, running in the root directory, to open and use a file in the protected directory? I wouldnt want the user to have to enter or know the password.

In this case, I'd be using the protected directory to "hide" the file from general access via a URL, but I still want my scripts to access it. Maybe this isnt really the right use for protected directories, though.
Sun 20/07/03 at 12:00
Regular
"whoneedsatagline?"
Posts: 194
Hi

I'm trying out a hosting package that allows me to protect directories. I can see how this prevents people accessing the pages in that directory, cos you get asked for a username and password.

But ... would I be able to write a PHP script, running in the root directory, to open and use a file in the protected directory? I wouldnt want the user to have to enter or know the password.

In this case, I'd be using the protected directory to "hide" the file from general access via a URL, but I still want my scripts to access it. Maybe this isnt really the right use for protected directories, though.
Sun 20/07/03 at 12:33
Regular
"Eff, you see, kay?"
Posts: 14,156
Protected directories only work via the webserver, eg. your users cannot access them, but scripts can.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.
Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.