PIE.php 613 B

12345678910111213141516171819
  1. <?php
  2. /*
  3. This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
  4. correct content-type, so that IE will recognize it as a behavior. Simply specify the
  5. behavior property to fetch this .php file instead of the .htc directly:
  6. .myElement {
  7. [ ...css3 properties... ]
  8. behavior: url(PIE.php);
  9. }
  10. This is only necessary when the web server is not configured to serve .htc files with
  11. the text/x-component content-type, and cannot easily be configured to do so (as is the
  12. case with some shared hosting providers).
  13. */
  14. header( 'Content-type: text/x-component' );
  15. include( 'PIE.htc' );
  16. ?>