Just use following code in your .htaccess file or apache configration file. AddType application/x-httpd-php .html Or for .htm AddType application/x-httpd-php .htm I found following article useful. http://php.about.com/od/advancedphp/p/html_php.htm
Monthly Archives: December 2009
How to remove curly quotes from WordPress
The apostrophe should be straight not curly in WordPress. Just Open your functions.php file from your theme folder. If you did not created functions.php file then you can paste this code in your header.php file. remove_filter(‘comment_text’, ‘wptexturize’); remove_filter(‘the_title’, ‘wptexturize’); remove_filter(‘the_content’, … Continue reading
Finding mouse position browser and screen size javascript
Following script Will tested and working on following browsers. 1. Firefox 2+ 2. Google chrome 3. Safari 4. IE 6, 7, 8 5. Opera You can Use following code for Capturing the Mouse coordinates as per Document body You can … Continue reading
Solved:trailing slash issue with Nginx server
I added following block in my nginx.conf file. You should add following lines in your server { } block. If you want use URL without ending trailing slash. then use following code. #code block added for trailing slash issue solving … Continue reading
Limit of QueryString / GET / URL parameters
Servers should be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations may not properly support these lengths. The spec for URL length does not dictate a minimum or maximum URL length, but … Continue reading
9 Best professional online networking web sites
1. Network: Linkedin Registered Members: LinkedIn has 30 million professional members from around the world representing 150 industries. 2. Network: Ecademy Registered Members: Membership numbers aren’t disclosed. 3. Network: Xing Registered Members: 6 million members, mainly Europe (Germany) and China. … Continue reading
How to exclude images from wordpress post
In one of project I got requirement of to exclude images from WordPress post. I written following code for excluding the image from Post Above line I added in showing post without image. <?php $FormatedContent = content_with_formatting(); $content = the_content(); … Continue reading
How to start Activemq with XML configuration file
You can download Aapache activeMQ from following URL; http://activemq.apache.org/activemq-530-release.html Choose the your OS(Linux/Windows). After downloading apache-activemq-5.3.0-bin.zip. Extract the ActiveMQ. Open command prompt and go to activeMQ/bin directory and run the “activemq” command. ActiveMQ will start without configration. If you are … Continue reading
Checking value from array javascript
I found usefull following URL working with Javascript Array. http://www.javascriptkit.com/jsref/arrays.shtml Here is my code to check value from array As per this condition I am chekcing the What is returned by this MyArrayVar.indexOf(testVar). You can check this by using “alert(MyArrayVar.indexOf(testVar));” … Continue reading
How to Install the IE6 and IE7 on Fedora11
Note: Dont became root because these files will crash your linux. Use following commands for installing the IE7 on your box. #su #ROOT_PASSWORD #yum install wine cabextract #exit Here we are exiting the root user #cd /tmp #wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz #tar … Continue reading