색인 파일이 거의 없습니다. 웹 사이트가 조금 느려서 디버깅하려고합니다. 페이지를 처음로드 할 때 방화 광 프로그램은 import 문을 두 번로드하고 있음을 보여줍니다. 두 번째 '복사'는 여전히로드 중입니다 (로드 중임을 나타내는 동적 표시기가 있음). 나는 결과를보기 위해 방화범에 넷을 사용하고있다.파이어 버그 쇼 가져 오기 문이 두 번로드됩니다.
크롬에서는 단 한 번만 표시됩니다. 나는 최신 안정 버전 1.7.3을 가지고 있으며 파이어 폭스 5를 사용하고있다.
Index.php는 두 개의 include_once
문을 가지고있다. 첫 번째 파일에는 데이터베이스 연결과 몇 가지 import 문이 있습니다. 두 번째 것은 머리말 (간단한 HTML 문장 - 멋진 것 없음)이 있습니다.
내 문제는 방화범 문제입니까?
Index.php는
<htmL>
<head>
</head>
<body>
<?php
include_once('db_con.php');
include_once('header.php');
?>
<div id="displayAjax"></div>
</body>
</html>
db_con.php
<?php
$host="host";
$username="user";
$password="pass";
$database="dbname";
$table1="table1";
$table2="table2";
$table2="table3";
$con = mysql_connect("$host", "$username", "$password")or die("cannot connect");
$select_db = mysql_select_db("$database")or die("cannot select DB");
ini_set('max_execution_time', 300);
session_start();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="import/file.css" />
<script type="text/javascript" src="import/jquery.js"></script>
<script type="text/javascript" src="import/ajax.js"></script>
</head>
</html>
header.php는
<?php
include_once('db_con.php');
?>
<html>
<head>
</head>
<body>
<div>
<p>Title</p>
Search for:
<input type="textbox" size="27" id="id" class="class" />
<input type="button" value="Search" onclick="searchFunction()" />
</div>
</body>
</html>
그래서 나는 새로운 파일 new.html을 만들었습니다. 오직 HTML 구문, PHP 또는 JS가 없습니다.
<html>
<head>
<title>Title</title>
</head>
<body>
<p>Something</p>
</body>
</html>
나는 직접적으로 포함하거나 수입하지 않았다. 이것은 여전히 두 번로드됩니다. 첫 번째가로드되고 두 번째 것에서 아직 동적 표시기가로드되고있는 'Something'이 표시됩니다.
일부 코드는 –
으로 표시하십시오. 즉, 귀하의 웹 페이지는 Firefox에서 두 번 호출됩니까? –
@Marek 내용을 업데이트했습니다. – theking963