From the course: PHP: Exporting Data to Files

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understanding the basic process

Understanding the basic process - PHP Tutorial

From the course: PHP: Exporting Data to Files

Start my 1-month free trial

Understanding the basic process

The rest of this course is devoted to using PHP to export data to formats used by fully featured word processing programs. There are two main formats, files with an odt file name extension and files with a docx extension. Both are based on the open document format. This is an international standard approved by the ISO. The International Organization for Standardization. The content of both odt and docx files is stored internally in XML documents. Although the structure of odt and docx files is markedly different, the fact that all the main information is stored as XML means that files created on one program can normally be read on another. In fact, odt and docx files are basically wrappers for XML and other files bundled together as a compressed zip archive. odt files are created natively by open source word processes such Apache OpenOffice Writer and LibreOffice Writer. But they can be opened and edited in Microsoft Word 2007 and later. docx files on the other hand have been created…

Contents