HighDots Forums  

CSS containing PHP not displaying when editing locally

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS containing PHP not displaying when editing locally in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nheaps
 
Posts: n/a

Default CSS containing PHP not displaying when editing locally - 09-01-2006 , 01:30 PM






Hello,

I'm having trouble getting DW to 'see' my CSS styles. This is because my
'CSS' file is actually a PHP program that outputs CSS.

So, in my css.php program, I have at the top:
<?php
header("Content-type: text/css");

...and then the CSS definitions underneath.

I reference it with:
<link href="../css/css.php" rel="stylesheet" type="text/css" />

It works fine on the server, but of course I can't see the styles when editing
the HTML in DW, because it's seeing the raw php file instead of the
output of that PHP file.

I've considered installing PHP locally to see if that solves the problem, but
does anybody here have any other ideas, or has anybody already solved this
problem?

Many thanks.

Kind regards,

Nick


Reply With Quote
  #2  
Old   
SugnaShane
 
Posts: n/a

Default Re: CSS containing PHP not displaying when editinglocally - 09-01-2006 , 01:35 PM






Due to the nature of PHP you would need to install PHP server and set up a
testing enviroment in Dreamweaver.

Here ia an FREE installer that installs MYSQL, PHP, APACHE, etc.
http://www.apachefriends.org/en/xampp.html

Shane


Reply With Quote
  #3  
Old   
nheaps
 
Posts: n/a

Default Re: CSS containing PHP not displaying when editinglocally - 09-01-2006 , 02:31 PM



Hi Shane,

Would the testing environment enable me to see the CSS styles in the editing window, or would they only show up on the locally-installed web server?

Kind regards,

Nick

Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: CSS containing PHP not displaying when editing locally - 09-01-2006 , 03:41 PM



They would only show up if you served the page, I believe.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"nheaps" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi Shane,

Would the testing environment enable me to see the CSS styles in the
editing window, or would they only show up on the locally-installed web
server?

Kind regards,

Nick



Reply With Quote
  #5  
Old   
crash
 
Posts: n/a

Default Re: CSS containing PHP not displaying when editing locally - 09-01-2006 , 03:46 PM



live view would work, shouldn't it?

"Murray *ACE*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
They would only show up if you served the page, I believe.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"nheaps" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:ed9u9v$ivm$1 (AT) forums (DOT) macromedia.com...
Hi Shane,

Would the testing environment enable me to see the CSS styles in the
editing window, or would they only show up on the locally-installed web
server?

Kind regards,

Nick





Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: CSS containing PHP not displaying when editing locally - 09-01-2006 , 03:53 PM



I don't know - it might.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"crash" <crash (AT) bcdcdigital (DOT) com> wrote

Quote:
live view would work, shouldn't it?

"Murray *ACE*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:eda29i$ndf$1 (AT) forums (DOT) macromedia.com...
They would only show up if you served the page, I believe.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"nheaps" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:ed9u9v$ivm$1 (AT) forums (DOT) macromedia.com...
Hi Shane,

Would the testing environment enable me to see the CSS styles in the
editing window, or would they only show up on the locally-installed web
server?

Kind regards,

Nick







Reply With Quote
  #7  
Old   
bregent
 
Posts: n/a

Default Re: CSS containing PHP not displaying when editinglocally - 09-01-2006 , 04:38 PM



Well if you can't get it working in the UI, you may want to investigate design time style sheets as a workaround.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.