d1d5
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
Here is a tricky one: (disclaimer: I know nothing of PHP) I am using a blank Joomla template to create a new template for a www/joomla25 site. This template uses a file called css/template.css.php to load the template's CSS files and send them as one long compacted string (minimized) (code below). On my FreeBSD server (PHP 5.3.13) template.css.php returns garbage: http://wfbrace.com:8000/templates/wf...ss.php?b=0&v=1 Wit the same template installed for test purposes on a production server running some Linux (PHP 5.3.10), hosted at Byte.nl, template.css.php returns the CSS, in MIN form: https://www.sense-online.nl/template...ss.php?b=0&v=1 What could be going wrong on my FreeBSD server? A wrong PHP setting? A missing php5 module? Thanks. PHP Code:
|
|
#2
|
|||
|
|||
|
If I request the file by hand with a simple HTTP request I get it fine, but in a web browser it's messed up.
I'm wondering if you're gzipping the data twice. My handmade request had no 'Accept-Encoding' header, so the server should not have tried to gzip the content, but it would with the web browser. Can you try removing the following line: Code:
ob_start ("ob_gzhandler");
|
| The Following User Says Thank You to usdmatt For This Useful Post: | ||
cbrace (September 21st, 2012) | ||
|
#3
|
|||
|
|||
|
Yep, that fixed it. Thanks! I'll pass this info on to the author of the template.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to install php5-extention (php5-zip) | kyryliv | Installation and Maintenance of FreeBSD Ports or Packages | 1 | May 18th, 2012 07:27 |
| Relative newbie trying to upgrade my PHP5.2x to PHP5.3x | EliG | Installation and Maintenance of FreeBSD Ports or Packages | 6 | September 9th, 2011 05:30 |
| BUG: Targets 'config-recursive' and 'config-conditional', behave same! | Seeker | Installation and Maintenance of FreeBSD Ports or Packages | 4 | June 9th, 2011 12:17 |
| [Solved] PHP5 upgrade problems - php5-pcre | Ronaldr | Installation and Maintenance of FreeBSD Ports or Packages | 8 | November 5th, 2010 08:28 |
| Adding Config To Port (PHP5) | Humongor | Installation and Maintenance of FreeBSD Ports or Packages | 2 | June 28th, 2010 21:57 |