 <p>Two potential sources of the problem, you shouldn't store your files with spaces in their names and you haven't specified a type for your video.</p> <p>The SRC should contain a valid URL and therefore you should have %20 or + in your PHP string in stead of the spaces.</p> <p>Note: As mentioned by Fisk, your php tags are wrong due to the spacing. You use the PHP echo short-form by replacing </p> <pre><code>&lt; ?php echo $vid; ? &gt; by &lt;?= $vid; ?&gt; </code></pre>