我的問題是,我的PHP網站被稱爲兩次。 但我不知道爲什麼。在我的訪問日誌我也得到兩個條目,如果我重裝:網站被調用兩次?
127.0.0.12 - - [13/Oct/2010:20:41:56 +0200] "POST /index.php HTTP/1.1" 200 1493 "http://mkw-testing/index.php" "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.36 Safari/534.7"
127.0.0.12 - - [13/Oct/2010:20:41:57 +0200] "GET /favicon.ico HTTP/1.1" 200 1498 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.36 Safari/534.7"
我error.log中顯示:
[Wed Oct 13 21:08:35 2010] [debug] mod_deflate.c(615): [client 127.0.0.12] Zlib: Compressed 2766 to 1067 : URL /index.php
[Wed Oct 13 21:08:35 2010] [debug] mod_deflate.c(615): [client 127.0.0.12] Zlib: Compressed 2743 to 1038 : URL /index.php/favicon.ico
我可以做什麼?我沒有任何重定向,重新加載aso。在JavaScript代碼中。
thx4help
可能是否存在Cookie問題?
shell我使用htaccess文件得到的網站只被稱爲一次?
UPDATE
影響無關的存取權限的日誌是我的網站明明叫了兩聲!事實是,如果我打印出一個索引,每增加一個呼叫點,顯示的網站只顯示奇數。所以它只有一個而不是一個。增量函數在代碼中不會被調用兩次。如果我打印索引到一個文本文件,我得到每一個數字,不僅是奇數。 ....我不知道該怎麼做:-S,到哪裏去尋找,如何調試....
這裏我的html:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>Testsuite</title>
<style type="text/css">
...
</style>
</head>
<body>
<!--script type="text/javascript">alert("go home!");</script-->
<p style="font-size: smaller; color: #555">
Testcases ID: 75<br>
Verbleibend: 94.5 % noch zu checken...<br>
</p>
<div id="action">
<h2>Suchprofile</h2>
<p>
Screen number: B01 (4)<br>
Pfad: /search/type<br><br>
</p>
</div>
<h2></h2>
<form name="testsuite" action="/index.php" method="POST">
<p style="width: 650px;">
<span style="color: gray">Ausgangassituation:</span> Der User befindet sich auf der /search/type Seite. <br>
<span style="color: gray">Eingabe:</span> Der User klickt auf ?Dieses Suchprofil speichern?. <br><br>
Reaktionen
<input type="hidden" name="id_testcase" value="75" />
</p>
<table width="650" border="1" cellspacing="0" cellpadding="0" >
<tr>
<td>Es öffnet sich ein Eingabefeld </td>
<td class="checkbox"><input type="checkbox" name="requirements[]" value="103" /></td>
</tr>
<tr>
<td>Rechts neben dem Eingabefeld wird ein Plus-Symbol angezeigt.</td>
<td class="checkbox"><input type="checkbox" name="requirements[]" value="104" /></td>
</tr>
</table>
<br>
<div style="border: 1px dashed #ccc; width: 650px; background-color: #ddd">
<input type="radio" name="action" value="skip" id="skip" /><label for="skip">Ignorieren</label><br>
<input type="radio" name="action" value="store" id="store" checked/><label for="store">Speichern</label><br>
<br>
<center>
<input type="submit" id="submitter" value="weiter" />
</center>
</div>
</form>
</body>
</html>
WTF ??這種現象只發生在鉻中。 – helle 2010-10-13 19:52:57
檢查您是否使用adblock插件。我有同樣的問題,當我停止插件問題解決。 – resul 2012-01-09 19:06:30