Hello everyone,
I will have 300+ Google videos on my website soon and would like to know if i can some how be able to edit the main google video code from just like file that will change everyone of my videos.
I understand the scr will be different for each video. I would love to some how make it so i can include the google code.
Is there anyway i can do this? The only way i have come up with would be to have 1 include called googlecode.php
Code:
<embed id="VideoPlayback" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" style="width: 500px; height: 350px;"
Thats what i would put in the include since its the same for every video, this would also give me the ability to change the size of the videos with minimal effort.
Then i will have the scr after it:
Would this work at all? so i could do this on each video page:
Code:
<?php include("includes/googlecode.php"); ?>src="http://video.google.com/googleplayer.swf?docId=-7993839789357636455&hl=en&fs=true&autoplay=1"/>
Is there a better way of doing this? sorry for my lack of knowledge im pretty new at PHP.