i have this jQuery function:
$("#text").load("test3.php?id="+ Math.random());
And this code is in page:
user.php
When i runt this page in this address:
http://127.0.0.1/user.php – everthing is OK.
But, When i runt this page in this address:
http://127.0.0.1/user/
in div “text” insert all root page.
test3.php page code:
<?php
echo "test 678";
?>
I’m not quite following the question, but there’s a difference there and so this may help:
When the browser resolves a relative URL, it uses the document location. Your two document locations are different in that one of them looks like a path to which
test3.phpshould be appended, the other looks like a page name thattest3.phpshould replace:but
http://127.0.0.1/user/ + test3.php = http://127.0.0.1/user/test3.php ^-- note the difference