i am sending data to a url using jquery ajax. i want to place the absolute url using php $_SERVER. what is the syntax to do this?
this is the file path that goes in the URL
$_SERVER['DOCUMENT_ROOT']."/folder/file_name.php"
this is the function that the file path goes in
$.ajax({
type: "GET",
url: "",
data: 'time='+ visitortimezone,
success: function(){
location.reload();
}
});
what is the syntax for this?