December
8

Here is the code how to resize youtube video embed code, even this code will work to non-youtube embed videos…..

<?php

$embed = ‘<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/jWDmG3JnNLE&hl=en_US&fs=1&”></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/jWDmG3JnNLE&hl=en_US&fs=1&” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>’;

//$alt = preg_match_all(’/(width|height)=(”[^"]*”)/i’, $embed, $matches);

$embed = preg_replace(’/(width)=(”[^"]*”)/i’, ‘width=”200″‘, $embed);
$embed = preg_replace(’/(height)=(”[^"]*”)/i’, ‘height=”200″‘, $embed);

echo $embed;

?>

Output here:

December
8

http://www.commandlinefu.com/commands/browse

http://blog.commandlinekungfu.com/

http://www.shell-fu.org/

http://www.cyberciti.biz/

http://thecommandline.net/

http://cheat.errtheblog.com/

http://getfirebug.com/commandline.html

http://xmlstar.sourceforge.net/

http://linuxcommand.org/

http://commandline.org.uk/

http://commandline.net/home.asp

http://www.linuxguide.it/linux_commands_line_en.htm

http://michaelminn.com/linux/command_line/

http://www.linuxclues.com/

http://www.go2linux.org/

http://www.yolinux.com/

http://www.linuxjournal.com/

http://www.linuxconfig.org/

http://www.linux.com/

http://www.howtoforge.com/

http://www.ehow.com/

http://www.yolinux.com/TUTORIALS/LinuxTutorialSysAdmin.html

http://linuxsysadminblog.com/

http://librenix.com/