Enable register_global through .htaccess

June 17, 2008 · Posted in apache, php · Comment 

I would not recommend to enable register_globals, but if you need to enable the register_globals for a particular web folder, you can edit the .htaccess file and append the following to it

php_flag register_globals on

Restart apache and you are on your way.

Mounted cifs folder does not display images

June 17, 2008 · Posted in apache · Comment 

To host a test website, I had mounted a folder on my Linux server from my Vista machine.  When I opened the browser and went to the website, I was unable to view the images.  The website worked fine except the images were not showing up.  Upon a little research it turned out that I had to disable the “EnableSendfile” in my httpd.conf file.

<Directory "/path-to-nfs-files">
EnableSendfile Off
</Directory>

For more information, click here.