正如标题所说,当人们试图进入我的网站时,他们被迫下载一个名为application / octet-stream的文件,他们面临着一个白色的屏幕,当我输入它时效果很好,这个havnt发生在过去它最近才刚刚起步。
在我的.htaccess中它表示"拒绝所有"
感谢您的帮助! 这是我的index.php
<?php
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', true);
define('INITIALIZED', true);
// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
define('ONLY_PAGE', false);
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');
// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');
// DATABASE
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
Website::getDBHandle()->setPrintQueries(true);
// DATABASE END
// LOGIN
if(!ONLY_PAGE)
include_once('./system/load.login.php');
// LOGIN END
// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END
// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END
// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
include_once('./system/load.layout.php');
else
echo $main_content;
// LAYOUT END
答案 0 :(得分:0)
正在下载该文件,因为Web服务器不知道该怎么做,所以假设请求它的人想要下载它。
尝试使用htaccess文件的处理程序。
AddHandler x-httpd-php5 .php
x-httpd-php5在您的服务器上可能有所不同。 ...- php53或php54例如
多个htaccess文件可能对任何人都没有帮助。