Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Question about embed links and php
Old 11-05-2007, 12:49 AM Question about embed links and php
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
I want to do something similar to youtube.com's embed


http://www.youtube.com/watch?v=Izr-PBNjXUQ
This is the embed for the link above
HTML Code:
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Izr-PBNjXUQ&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Izr-PBNjXUQ&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
when this is typed into the browser

Code:
http://www.youtube.com/v/Izr-PBNjXUQ
becomes
Code:
http://www.youtube.com/swf/l.swf?video_id=Izr-PBNjXUQ&eurl=&iurl=http%3A//img.youtube.com/vi/Izr-PBNjXUQ/default.jpg&t=OEgsToPDskKrduf-TcsxEHmOSYQ6KIAA&rel=1&border=0
How do I do something similar to that with my site?

Somebody please help me with this.
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
 
Register now for full access!
Old 11-05-2007, 01:00 AM Re: Question about embed links and php
Super Talker

Posts: 104
Location: http://www.joomladevs.com
Trades: 0
You can do it with .htaccess file...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


saurabhj is offline
Reply With Quote
View Public Profile Visit saurabhj's homepage!
 
Old 11-07-2007, 05:44 PM Re: Question about embed links and php
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Cool can someone show me an example of how to do this.
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 11-08-2007, 10:21 PM Re: Question about embed links and php
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
You can (as said above) use .htaccess to use Apache's rewriting module. It usues regular-expressions to interpet an incomming URL to rewrite an URL with a query string in which PHP can interpet.

http://www.yourhtmlsource.com/sitema...rewriting.html

But it looks like from the example above, you may need to do a script to gain the extra parameters from the ID within a database or other data source.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Question about embed links and php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50406 seconds with 12 queries