1 Replies - 991 Views - Last Post: 29 December 2010 - 06:59 AM

#1 armon   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 24-September 09

.htaccess allowing one file to have access to all others

Posted 28 December 2010 - 09:44 AM

Hello,

Is that possible to write in .htaccess something that is allowing one file to have access to all others.

For example I start with

Order deny,allow
Deny from all


how to make for example file 'controller.php' to have access to all the files ?

I'd like to do in controller.php readfile('myvideo.flv'); at the end, but it won't work, because i didn't allow it by using the code i mentioned. I want to have only controller.php to have access for it.

Any ideas, please?

Is This A Good Question/Topic? 0
  • +

Replies To: .htaccess allowing one file to have access to all others

#2 moopet   User is offline

  • binary decision maker
  • member icon

Reputation: 345
  • View blog
  • Posts: 1,190
  • Joined: 02-April 09

Re: .htaccess allowing one file to have access to all others

Posted 29 December 2010 - 06:59 AM

the .htaccess file doesn't change file access permissions on the local file system. It tells the web server what a remote client (a browser) can access. Your php script can almost certainly access files locally. You may have the wrong path, the wrong permissions on the file or folder, or PHP's safe_mode may be restricting your access to that file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1