简体   繁体   English

Apache或PHP将HTTP标头添加到CSS和JS文件中

[英]Apache or PHP Prepends HTTP Headers to CSS and JS Files

I am receiving odd issues with my JS and CSS files in my web application on my CentOS server running PHP 5.3.3. 在运行PHP 5.3.3的CentOS服务器上的Web应用程序中,我的JS和CSS文件出现奇怪的问题。 I have ran this application on XAMPP (PHP 5.3.1) and it does not do this. 我已经在XAMPP(PHP 5.3.1)上运行了该应用程序,但它没有做到这一点。 All my CSS styling and JS have the HTTP headers stamped prepended to them with some binary something in there. 我所有的CSS样式和JS都在前面加上了HTTP标头,并在其中添加了一些二进制文件。

What is going wrong with Apache? Apache怎么了? All these files are linked normally without PHP involved for the HTML documents. 所有这些文件通常都链接在一起,而HTML文档没有涉及PHP。

Any help or ideas would be most appreciated! 任何帮助或想法将不胜感激! Thanks! 谢谢!

<T� �07�)�E����@�@���ߌM�ߍ��P��v�a�u6�v�����
H�e7,��HTTP/1.1 200 OK
Date: Wed, 15 Feb 2012 17:37:49 GMT
Server: Apache/2.2.15 (CentOS)
Last-Modified: Wed, 15 Feb 2012 16:36:01 GMT
ETag: "e0504-d02-4b9034e9521ec"
Accept-Ranges: bytes
Content-Length: 3330
Connection: close
Content-Type: text/css

/* GENERAL */

body {
font-family: Geneva, Verdana;
font-size: 10px;
color: #333333;
margin: 20px;
padding: 0;
background-color: #FFFFFF;
}

Run memtest86 to check if your machine's memory is faulty. 运行memtest86以检查计算机的内存是否有故障。 Assuming you are using precompiled packages from your distribution it's unlikely that they are damaged in such a way so the most likely reason is a memory issue. 假设您正在使用发行版中的预编译软件包,则它们不太可能以这种方式损坏,因此最可能的原因是内存问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM