Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 25th, 2010, 06:25 PM
Registered User
 
Join Date: Mar 2010
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default How do you put php within a CSS file? (ch2 ex4 p652)

In answer to exercise 4 of chapter 2 it is suggested that the sessions variables' value be placed into a separate CSS file which is of course the ideal. However they don't tell you how to do this. My question is if php code has to be placed in a page with the extn .php and CSS uses the extn .css , then how do you place php in a CSS file?
 
Old March 25th, 2010, 08:59 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

It's the opposite. Reference your css from your php like this:
Code:
<head>
<link rel="stylesheet" type="text/css" href="foo.css" />
</head>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Put css value in variable kokoness XSLT 2 September 2nd, 2009 03:16 AM
Formatting php with css Hylsan Pro PHP 3 December 25th, 2006 07:16 AM
Php code to put&get images from mysql not working! angelbeans PHP Databases 1 September 8th, 2006 12:44 PM
out put file kgoldvas XSLT 3 January 26th, 2006 10:34 AM
how to put the content in the physical file b4 sho ameerabul General .NET 0 November 18th, 2004 01:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.