Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is is possible to enable the php readfile function within .htaccess or within the virtual host, the functionality has been disabled by the sys admin who does not want to enable it. I need to enable it for a specific directory.

share|improve this question
up vote 3 down vote accepted

If he explicitly disabled it in the php.ini, you can not re-enable it in other places, of course.

BTW, even if you'd find a way to do it ... if I would be your sysadmin I will discover the trick soon and I'll remove your account at all!

My hint is, find a hosting giving you this opportunity !

share|improve this answer
Found another solution, I used file_get_contents was nt disabled. Thx – Roland Jul 21 '10 at 13:45
You are welcome :) – drAlberT Jul 22 '10 at 8:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.