Creating a Word Document with PHP, XML and XSLT
| Categories: PHP, XML | This tutorial will explain how to create a word document in PHP from an existing .docx template. This is made possible by the way the new word doc style(.doc -> .docx) is an archive containing xml files which can be manipulated by PHP. I recommend creating a new directory for this project. First, we need to create our template. I made a new Word Document called 'FavoriteMusicList.docx'. I used the Title heading at the top saying 'Favorite Music List', then a bullet point in heading 1 for the band name, then more indented a numbered space for songs. The way your template l... Read more... |
On Browser Compatibility
| Categories: PHP | Anyone who works with web-design hates the process of ensuring that the site they've created has smooth cross-browser functionality. My biggest tip would be to design as simplistic as you can- use tables instead of div's for organizing a site, as the float: CSS property doesn't show perfectly in every browser, Avoid position: absolute at all costs, as it renders quite different across browsers, Don't cut corners by using tags out of order to get the effect you want; for example <td><a></a></td> works in IE 7 to produce a box-like lin... Read more... |