Access all Area (nope)
Posted: Mon Sep 29, 2003 9:50 pm
This question has probably been asked more times than "what's the meaning of life?" but I have been through a shed-load of topics and can't find an answer to this question.
On my server I have a folder (called fonts) which is full of my own fonts (surprise). Now, the folder is protected using a standard (.hta?) username and password.
I am trying to find out how to supply the username and password (so I can access the folder) from within a function or class (I am using the fonts for GD bits and bobs) and then remove the permissions to stop the visitor being able to access the fonts folder after the script has finished.
Help as usual would be great.
Thanks.
PS. If there's an easier way to protect the folder (chmod maybe?) then any info on that would be cool too.
On my server I have a folder (called fonts) which is full of my own fonts (surprise). Now, the folder is protected using a standard (.hta?) username and password.
I am trying to find out how to supply the username and password (so I can access the folder) from within a function or class (I am using the fonts for GD bits and bobs) and then remove the permissions to stop the visitor being able to access the fonts folder after the script has finished.
Help as usual would be great.
Thanks.
PS. If there's an easier way to protect the folder (chmod maybe?) then any info on that would be cool too.