Re: Using php to modify a css file

From: Date: Sun, 23 May 2004 09:17:40 +0000
Subject: Re: Using php to modify a css file
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-186787@lists.php.net to get a copy of this message
On Sun, 23 May 2004 01:19:44 -0400 (EDT), mike@teczno.com (Michal Migurski) wrote: >> Without a <?php in the file I think that whether it's parsed by php or >> not shouldn't make any difference -- but it does. > >It will only make a difference if the HTTP response from the server is >different somehow -- contains junk, wrong headers, that sort of thing. The >only way to reliably diagnose such problems is to figure out a way to view >the entire HTTP response, headers and all. I use curl for this, but you >might not have access to a command line. Thanks for pointing me to curl. When the css file is being parsed by php the Content-Type changes to text/html. It works just fine if I add the following two lines to the beginning of the file: ob_start(); header( 'Content-Type: text/css' ); I still don't know why it worked on the remote server since it's doing the same thing.

« previous php.general (#186787) next »