|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
I need to prepend all files in a certain directory utilizing Apache and PHP. Is there any performance difference between using an .htaccess file with php_value auto_prepend_file in it or should I be auto-prepending the files using the <Location> tag in my httpd.conf file?? I like using the .htaccess file because it makes the sites more portable (no access to httpd.conf needed), but is this less efficient than putting it in the .conf file?
Any remarks on this would be helpful! Thanks! Matt |
|
#2
|
|||
|
|||
|
if you are using an .htaccess file in a directory then your server has to read it every time you access that directory
if you are using the httpd.conf file then the server will read it only at the time of a restart or a normal server start and keeps its contents in memory. therefore it will evaluate the directives more efficiently... BUT to be honest i have never measured the difference between the two and in case you have a really fast comupter than you will not notice it at all ... |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > auto_prepend using .htaccess or httpd.conf?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|