for the current project im doing,i need to .htaccess protect adirectory so that noone can enter and a php script can pull files from it.
as i want it to be easily instaled, is there a quick and simple way to find the directory a script is running in?
hope someone can help
Tom
finding directory that a script is running in?
Moderator: General Moderators
How about
Mark
Code: Select all
<?
print(dirname(__FILE__));
?>