title: syntax for including $_SERVER filepath in jquery ajax url?
body: <p>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?</p>
  
  <p><strong>this is the file path that goes in the URL</strong></p>
  
  <pre><code>$_SERVER['DOCUMENT_ROOT']."/folder/file_name.php"
  </code></pre>
  
  <p><strong>this is the function that the file path goes in</strong></p>
  
  <pre><code>$.ajax({
              type: "GET",
              url: "",
              data: 'time='+ visitortimezone,
              success: function(){
                  location.reload();
              }
          });
  </code></pre>
  
  <p>what is the syntax for this?</p>