How to Fix MIME Type Problems in Elgg 1.8
Last Updated on Wednesday, 17 October 2012 07:27 Written by Rodolfo Hernandez Thursday, 18 October 2012 12:00
There has been a big problem for a while involving recognizing MIME types in elgg 1.8 This is due to the fact that the latest elgg release quietly requires php 5.3 to properly recognize MIME types as pointed out for one of our elgg users in our forum. For that reason in this article I will show you to fix this issue.
By default, all of our Linux accounts use of PHP 5.2 as not all scripts are compatible with PHP 5.3, but since elgg relies on php 5.3, we are going to do the following solution, which was extracted from one of our articles written by Ryan.
Open the .htaccess file of your elgg installation, and of the top of the file, add this line:
AddHandler application/x-httpd-php53 .php
Learn MoreHow to Detect If a Website Is Being Browsed Through a Mobile Device with PHP
Last Updated on Sunday, 20 May 2012 12:37 Written by Richi González Friday, 9 March 2012 12:00
Hello,
As technology is changing, and a great percentage of the total Internet users browse the web through their mobile devices, it’s become essential for a web developer, to add support for these devices. This can be achieved in various ways, but today, I’ll show you how to do it with PHP.
Difficulty level: Easy
1. Open up the header.php file of your website or the index.php file; if you just want to test it, simply create a new PHP file.
2. At the top, add the following:
Learn More
Recent Comments