title: Parse error unexpected ":" Works fine in localhost
body: <p>I have a PHP application with me, which was done by myself and a few of us. I have not coded much, but it worked well in the <code>localhost</code>. When I tried to upload it in our university web server, I had got this error.</p>
  
  <blockquote>
    <p>Parse error unexpected <code>:</code></p>
  </blockquote>
  
  <p>This happened on this line. So I believe that PHP has to do something with respect to the previous line too. So I am adding the previous and next lines:</p>
  
  <pre><code>&lt;?php
    session_start();
    $page = $_GET["page"] ?: "index"; // Error in this line!
  </code></pre>
  
  <p>The funny part is, this works on my WAMP Server locally, but it doesn't work in the university server. Is there any issue with the code?</p>