Re: Can a php script be placed within a stylesheet?

From: Date: Mon, 10 Jun 2002 13:21:48 +0000
Subject: Re: Can a php script be placed within a stylesheet?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101385@lists.php.net to get a copy of this message
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." <wstan@xs4all.nl> To: "php" <php-general@lists.php.net> 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 > >

« previous php.general (#101385) next »