Forums Gallery Movies File Hosting Classifieds Jokes Free Hosting Free Blogs

Go Back   BizHat Forums > Computer Forum > PHP Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2009, 03:37 PM
Junior Member
BizHat Newbie
 
Join Date: May 2009
Posts: 5
Default Google video player PHP include

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0