[PHP] Re: Can a php script be placed within a stylesheet?
On Mon, 10 Jun 2002, Andrew Brampton wrote: 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 But wouldn't that prevent it from being parsed as a CSS file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Can a php script be placed within a stylesheet?
CSS in this sense is client side. As long as the PHP output is valid style codes, you should be ok. -Original Message- On Mon, 10 Jun 2002, Andrew Brampton wrote: 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 But wouldn't that prevent it from being parsed as a CSS file? This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Can a php script be placed within a stylesheet?
The PHP parsing would take place before the file is sent to the browser. The CSS goes into effect when it hits the browser, on the client side, so it wouldn't matter. All the client cares is that there was a CSS file sent, it doesn't care if it was text or created by PHP or whatever. That's how I interpret it at least... Does the CSS file _HAVE_ to end in .css? Or does it just matter how you link ---John Holmes... - Original Message - From: Timothy J. Luoma [EMAIL PROTECTED] To: Andrew Brampton [EMAIL PROTECTED] Cc: William S. [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Monday, June 10, 2002 5:05 PM Subject: [PHP] Re: Can a php script be placed within a stylesheet? On Mon, 10 Jun 2002, Andrew Brampton wrote: 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 But wouldn't that prevent it from being parsed as a CSS file? -- 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
Re: [PHP] Re: Can a php script be placed within a stylesheet?
That's how I interpret it at least... Does the CSS file _HAVE_ to end in .css? Or does it just matter how you link HTTP content headers can be used to tell the client that this is a file of a different name. EG: I have a pdf outputted from a output.php file and to make it look like file.pdf instead I use: header(Content-Disposition: filename=file.pdf); -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php