enuk

    <object width="{$width}" height="{$height}">
        <param name="movie" value="http://www.youtube.com/{$path}"></param>
        <param name="allowFullScreen" value="true"></param>
        <param name="allowscriptaccess" value="always"></param>
        <embed src="http://www.youtube.com/{$path}"
               type="application/x-shockwave-flash"
               allowscriptaccess="always"
               allowfullscreen="true"
               width="{$width}" height="{$width}">
        </embed>
    </object>
    

    $template_path = 'templates/youtube_vid.tpl';
    $template_data = file_get_contents($template_path);
    
    $old = array('{$width}', '{$height}', '{$path}');
    $new = array(425, 344, 'v/zuZB2O6orV0&hl=en_US&fs=1&');
    
    echo str_replace($old, $new, $template_data);
    

https://stackoverflow.com/questions/1827933/mysql-php-store-html-templates-within-the-a-database