title: How to fix the syntax error "unexpected 'enter' (T_STRING) syntax error, expecting ','"
body: <pre><code>&lt;?php
  if ($_SERVER['REQUEST_METHOD'] == ‘POST’)
  {
  $url = (isset($_POST['url']) &amp;&amp; !empty($_POST['url'])) ? $_POST['url'] : false;
  if (!$url) {
  echo “Please enter a URL”;
  } else {
  $source = file_get_contents($url);
  $source = urldecode($source);
  
  // Extract video title.
  $vTitle_results_1 = explode(‘&lt;title&gt;’, $source);
  $vTitle_results_2 = explode(‘&lt;/title&gt;’, $vTitle_results_1[1]);
  
  $title = trim(str_replace(‘ – YouTube’, ”, trim($vTitle_results_2[0])));
  
  // Extract video download URL.
  $dURL_results_1 = explode(‘url_encoded_fmt_stream_map”: “url=’, $source);
  $dURL_results_2 = explode(‘\u0026quality’, $dURL_results_1[1]);
  
  // Force download of video.
  $file = str_replace(‘ ‘, ‘_’, strtolower($title)).’.webm’;
  
  header(“Cache-Control: public”);
  header(“Content-Description: File Transfer”);
  header(“Content-Disposition: attachment; filename=$file”);
  header(“Content-Type: video/webm”);
  header(“Content-Transfer-Encoding: binary”);
  
  readfile($dURL_results_2[0]);
  
  exit;
  }
  }
  ?&gt;
  &lt;form method=”post”&gt;
  &lt;label for=”url”&gt;URL:&lt;/label&gt;
  &lt;input type=”text” name=”url” value=”" id=”url”&gt;
  &lt;input type=”submit” name=”submit” value=”Download”&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I load it I get the following parse error:</p>
  
  <blockquote>
    <p>syntax error, unexpected 'enter' (T_STRING), expecting ',' or ';' in ... on line 6</p>
  </blockquote>
  
  <p>I can't fix this error. Can someone help me how to fix this?</p>