By
Gunjan · September 1, 2009
To disable the Directory listing for folders you need to create the .htaccess file under the each an every folder under which you want to disable the Directory listing and insert the following code in .htaccess file.
————
Options -Indexes
————
Please contact us if you have any problem or queries…..
By
Gunjan · August 29, 2009
DNS cache is most common problem in now a days and largely its create difficulty to web developer and technician who are working to solve the web issue.You can clear the cache from your local machine bu using following commands on your local machine as per your local machine operating system.
1) For Windows
- Start -> Run -> type cmd
-In command prompt, type
ipconfig /flushdns
2) For Linux
- To restart the nscd daemon, type
/etc/rc.d/init.d/nscd restart in your terminal
3) For Mac OS X
- type lookupd -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ lookupd -flushcache
4) For Vista
Here is how to fix that corrupted DNS cache in vista.
1. Click the Microsoft Vista Start logo in the bottom left corner of the screen
2. Click All Programs
3. Click Accessories
4. RIGHT-click on Command Prompt
5. Select Run As Administrator
6. In the command window type the following and then hit enter:
ipconfig /flushdns
Some time we are facing very strange problem with the browser like when we are browsing the .html pages in Safari its asking for downloading pages on local machine.To resolve such errors you need to add following code in .htaccess file.
AddHandler application/x-httpd-php5 .htm .html .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .htm .html .php5 .php4 .php .php3 .php2 .phtml
It will resolve you issue with the Safari browser for .html pages