Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 5, 2004, 3:12 pm
rate this thread
can anyone tell me why this doesn't work:
<link rel="stylsheet" href="http://<?php echo $_SERVER['SERVER_NAME'];
?>/includes/test3.css" type="text/css" />
there is no wrap in the actual file.
when I view the source the code is printing the correct information.
I think I picked a good one for my first attempt at php. I am trying to
create a generic template.
- Janwillem Borleffs
December 5, 2004, 4:44 pm
Re: generating a css file incude using $_SERVER['SERVER_NAME'];
When you paste the printed stylesheet href in your browser and are able to
retrieve it from there, there's probably an error in the css file when it
isn't rendered the way you expected it to.
It might also be useful to use HTTP_HOST rather then SERVER_NAME (which can
be 2 different things).
- » checking if image generation is supported and image resize
- — Previous thread in » PHP Scripting Forum