A question about jumping in PHP
For example, a link "www.abc.com/test.php"
Judging if eregi (' abc ', $_server[' Http_referer ')) | | Strpos ($_server[' http_host '), ' abc ')!==false
Just jump to www.def.com/test.php.
Local testing passed, but on the server will be two URLs repeatedly jump, and then removed Strpos ($_server[' http_host '), ' abc ')!==false normal.
What is the reason?
In addition, the way I use the jump is
echo " ; exit;
Other normal, but the Apple browser seems to still not work. Solving..
There is no better way, I have tried a lot of no effect, such as output header, JavaScript, as if it is related to the browser?
------Solution--------------------
You can share
Header ("location:www.def.com/test.php");
------Solution--------------------
ABC and DEF are just different domain names, and the directories and files are the same
This is the key, the operation is actually the same file.
------Solution--------------------
Do not know is not the same file, puzzle ~ ~ ~
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service