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: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.
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.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie

View More Reviews

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

Go to Support Centre

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.