title: Simple PHP code not working on mobile
body: <p>THis may be super basic, but I have not been able to resolve this after spending hours!</p>
  
  <p>I am running PHP 7 on Ubuntu 16.1.</p>
  
  <p>The PHP file is EXACTLY as follows</p>
  
  <pre><code>  &lt;?php
  
  header("Content-type: application/javascript");
  header("HTTP/1.1 200 OK");
  
  ExpandShortLink();
  
  
  function ExpandShortLink()
  {
  
      // get URL
      $URL_To_Expand = $_REQUEST['url'];
      // for short links, get the full links
  
      // get full URL
      $arr_URL_Header = get_headers($URL_To_Expand, 1);
      $strLink        = $arr_URL_Header['Location'];
  
  //echo $URL_To_Expand;
      //print_r($arr_URL_Header);
  
      if ($strLink) {
          if (is_array($strLink)) {
              $Full_URL = array_pop($strLink);
          } else {
              $Full_URL = $strLink;
          }
      } else {
          $Full_URL = $URL_To_Expand;
      }
  
      echo $Full_URL;
  }
  </code></pre>
  
  <p>--> produces the url I enter as a "url" parameter on desktop. But nothing on mobile!</p>
  
  <p>On some reading, I found that in sometimes PHP interprets everything after "//" as a comment and that may be happening here. But then why does it happen on mobile only? Also, andy suggestions on resolving this will be great!</p>
  
  <p>Thanks much for your help,</p>
  
  <p>You can see this live <a href="http://buya2z.net/test/test_Ajax.php?url=http://example.com" rel="nofollow noreferrer">here</a></p>
  
  <p>If you click this on desktop, you will see http:// example. com. However, on mobile it will return http:</p>