[PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread William S.

Can a php script be put within a stylesheet and
work properly? If so, how?

For instance, this script put inside an XSL
stylesheet file:

  ?php
  $myvar = Hello World;
  echo $myvar;
  ?

Then it is transformed into html via Sablotron.

-- 
Bill
Amsterdam, NL

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread Andrew Brampton

Yes you can place one in a style sheet you just need to tell apache (or
whatever) that .css should be parsed by PHP, this can be done via a
.htaccess or something similar... Here is a example in a .htaccess file:

AddType application/x-httpd-php .css

andrew
- Original Message -
From: William S. [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 1:33 PM
Subject: [PHP] Can a php script be placed within a stylesheet?


 Can a php script be put within a stylesheet and
 work properly? If so, how?

 For instance, this script put inside an XSL
 stylesheet file:

   ?php
   $myvar = Hello World;
   echo $myvar;
   ?

 Then it is transformed into html via Sablotron.

 --
 Bill
 Amsterdam, NL

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php