twice execution of php

11 views
Skip to first unread message

zhang...@gmail.com

unread,
Oct 12, 2012, 1:45:54 AM10/12/12
to multi...@googlegroups.com
Hello Scott,

I am a Chinese user of this awesome chrome extension. When I was trying to develop some PHP applications on localhost earlier today, I found that this Multi Search extension causes twice execution of the php files if I use the Chrome browser. According to the Apache log file:

::1 - - [12/Oct/2012:13:18:52 +0800] "GET /test.php HTTP/1.1" 200 1838 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"
::1 - - [12/Oct/2012:13:18:52 +0800] "GET /test.php HTTP/1.1" 200 1838 "http://localhost/test.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"

After the first line (the first-time PHP execution), the browser displays correct content; then, immediately another repetitive execution follows. But if I disable the Multi Search extension, there will be only the first line in the log. This is a problem when I try to insert/update some records in a database using PHP, because the second execution leads to wrong results.

Is this really because of Multi Search?

Thanks,
Wangda

Scott

unread,
Oct 12, 2012, 2:32:48 AM10/12/12
to multi...@googlegroups.com, zhang...@gmail.com
Hi Wangda,

This is a side effect of the process needed to find OpenSearch entries on a web page,it is something I have been intending to revisit to see if there is anything I can do to prevent the double load of the page. In the interim, if this is causing you problems, my recommendation (until I can fix this) is that on the Multi Search options page, set the OpenSearch setting to No, this will prevent the second read of web pages.

Scott
Reply all
Reply to author
Forward
0 new messages