+ Post New Thread
Results 1 to 3 of 3
Virtual Learning Platforms Thread, Office 2007 file format support in Apache, PHP and Moodle in Technical; Just had to figure this one out, using info from this blog . Either edit /etc/mime.types and add: Code: application/vnd.openxmlformats ...
  1. #1

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Office 2007 file format support in Apache, PHP and Moodle

    Just had to figure this one out, using info from this blog.

    Either edit /etc/mime.types and add:

    Code:
    application/vnd.openxmlformats       docx pptx xlsx
    Or add the following to your apache.conf

    Code:
    AddType  application/vnd.openxmlformats  .docx .pptx .xlsx
    Then you need to tell Moodle what to do (following instructions are for 1.7.1).

    1) Open lib/filelib.php
    2) find the get_mimetypes_array() function
    3) find the array definition
    4) add the following elements

    Code:
    'docx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'word.gif'),
    'pptx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'powerpoint.gif'),
    'xlsx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'excel.gif'),
    There's other file extensions for templates, etc. But I've ignored them as I don't know what they are and I'm hoping no one will use them (However if anyone wants to post them or let me know so I can, feel free).

  2. #2

    Join Date
    Mar 2006
    Posts
    537
    Thank Post
    2
    Thanked 3 Times in 2 Posts
    Rep Power
    18

    Re: Office 2007 file format support in Apache, PHP and Moodl

    Quote Originally Posted by Geoff
    I've ignored them as I don't know what they are and I'm hoping no one will use them
    LOL Spoken like a 'real' tech

    It shows you're human, I suppose.

  3. #3
    Joedetic's Avatar
    Join Date
    Jan 2006
    Location
    Walsall
    Posts
    1,316
    Thank Post
    6
    Thanked 13 Times in 13 Posts
    Rep Power
    21

    Re: Office 2007 file format support in Apache, PHP and Moodle

    Let's face it...if the sysadmin doesnt know what they are the BOFHs arent likely to really.

SHARE:
+ Post New Thread

Similar Threads

  1. Office 2007 default save format
    By Geoff in forum Office Software
    Replies: 11
    Last Post: 4th April 2012, 01:48 PM
  2. Delete certain file format using a script
    By FN-GM in forum Scripts
    Replies: 3
    Last Post: 27th December 2007, 12:17 AM
  3. Office 2007 file convertors
    By dezt in forum Downloads
    Replies: 10
    Last Post: 5th May 2007, 02:40 PM
  4. MS Office 2007 default 2003 format save
    By zag in forum Educational Software
    Replies: 4
    Last Post: 24th April 2007, 10:44 AM
  5. ical file format to csv convert
    By russdev in forum Windows
    Replies: 2
    Last Post: 1st November 2006, 06:22 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •