so that your
server will recognize the style sheet as a php page.
But someone else said all you have to do is change the page's extension
from .css to .php. I tried that, but it didn't work for me.
Are you aware of any good tutorials on using PHP with style sheets?
Thanks.
--
PHP General
, then alter a document so that your
server will recognize the style sheet as a php page.
But someone else said all you have to do is change the page's extension
from .css to .php. I tried that, but it didn't work for me.
Are you aware of any good tutorials on using PHP with style sheets?
Thanks
Hello Freedomware,
Monday, January 19, 2004, 7:18:10 AM, you wrote:
F I just learned that you can even use PHP on style sheets. Can anyone
F here tell me how to set it up?
F Are you aware of any good tutorials on using PHP with style sheets?
Sorry but you haven't really stumbled onto a pot
Sorry but you haven't really stumbled onto a pot of gold here or
anything.
Hmmm... it sounds like using PHP with style sheets isn't a recommended
practice.
John Nichel wrote:
If you want PHP to parse your *.css files, you need to tell your
webserver software to do so. In Apache
AddType
Freedomware wrote:
Sorry but you haven't really stumbled onto a pot of gold here or
anything.
Hmmm... it sounds like using PHP with style sheets isn't a recommended
practice.
I wouldn't do it unless I had a good reason to do it. The reason that's
cited on the page you referred to
is to have
On Monday, January 19, 2004, at 06:18 PM, Freedomware wrote:
I just learned that you can even use PHP on style sheets. Can anyone
here tell me how to set it up?
Add this to your .htaccess file:
Files ~ \.css$
ForceType application/x-httpd-php
/Files
Add this to the top of your CSS file:
on using PHP with style sheets?
Just name you style sheet with a php extension.
site.css.php
and put a Content type header at the top of you style sheet.
header(Content-type: text/css );
Then call the style sheet in one of the usual methods, link rel or
@import
--
BrianGnuPG - KeyID
OK, it looks like there are at least three ways to do this. I now have
an original style sheet with a .css extension and copies with .php and
.css.php extensions.
All three style sheets have the following code at the top:
?
header(Content-Type: text/css);
?
For the original style sheet, I
Freedomware wrote:
OK, it looks like there are at least three ways to do this. I now have
an original style sheet with a .css extension and copies with .php and
.css.php extensions.
All three style sheets have the following code at the top:
?
header(Content-Type: text/css);
?
I would think
On Mon, Jan 19, 2004 at 11:08:29AM -0600, John Nichel wrote:
Freedomware wrote:
OK, it looks like there are at least three ways to do this. I now have
an original style sheet with a .css extension and copies with .php and
.css.php extensions.
All three style sheets have the following code
On Tuesday, January 20, 2004, at 04:08 AM, John Nichel wrote:
Freedomware wrote:
OK, it looks like there are at least three ways to do this. I now
have an original style sheet with a .css extension and copies with
.php and .css.php extensions.
All three style sheets have the following code at
11 matches
Mail list logo