I want to get the URL form server side.
I'm using that request to call ajax to server:
$.ajax({
  type: "post",
  url: "includes/pages_includes/func_infos.php",
  data: {
    "...."         : "..."
  },
  beforeSend: function() {
  },
  success: function(data) {
  }
});
If I use $_SERVER['REQUEST_URI'](In func_infos.php) to get URL It gives me: includes/pages_includes/func_infos.php.
I want to get as URL: http://localhost/insc/web_/view_page.php?id_page=10.
How can I get the needed URL?
 
     
     
     
    