Forums
View unanswered posts | View active topics It is currently Thu Apr 24, 2014 1:17 pm



Reply to topic  [ 5 posts ] 
 When to use PIE.php 
Author Message

Joined: Wed Jul 13, 2011 11:06 am
Posts: 3
Post When to use PIE.php
I'm just curious when PIE.php should be used? I couldn't find any documentation on the subject, so I'm hoping someone can help.


Wed Jul 13, 2011 11:09 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1430
Post Re: When to use PIE.php
The documentation is within PIE.php itself ;)

/*
This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
correct content-type, so that IE will recognize it as a behavior. Simply specify the
behavior property to fetch this .php file instead of the .htc directly:

.myElement {
[ ...css3 properties... ]
behavior: url(PIE.php);
}

This is only necessary when the web server is not configured to serve .htc files with
the text/x-component content-type, and cannot easily be configured to do so (as is the
case with some shared hosting providers).
*/


Wed Jul 13, 2011 11:10 am
Profile

Joined: Wed Jul 13, 2011 11:06 am
Posts: 3
Post Re: When to use PIE.php
Thanks for the speedy response.

I actually read that already, in the PHP file as you said.
As I am yet new to a lot of things, I need some explanation concerning this.

First, by saying it's for use in PHP environments, am I to understand that to mean for use on PHP pages as opposed to HTML pages?
I do have one PHP page which is my contact page, but it links to an external style sheet, thus would PIE.php be necessary?

Second, how am I to know if my server is configured to serve .htc files with the text/x-componant content-type?
I use godaddy to host my pages. I guess I could just ask them?

Thanks for the help.


Wed Jul 13, 2011 11:28 am
Profile

Joined: Sat Aug 21, 2010 11:12 am
Posts: 223
Post Re: When to use PIE.php
Here's one person's experience with GoDaddy:
viewtopic.php?f=3&t=686

I think using a .htaccess file to define the content type could still work. Worth a shot anyway. You don't have to have your pages as .php. The talk about a PHP environment means a web server with PHP installed.

_________________
PIE needs more community support persons! Time is money, which means you can fund PIE development by answering support questions.


Wed Jul 13, 2011 12:00 pm
Profile

Joined: Wed Jul 13, 2011 11:06 am
Posts: 3
Post Re: When to use PIE.php
Brilliant!
That answers all my questions. And low and behold my htaccess already has the functionality!

Thank you very much.


Wed Jul 13, 2011 2:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.