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
Simple embed anybody know how to do this
Old 08-21-2007, 10:06 PM Simple embed anybody know how to do this
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
How can I create embed links that are simple like youtube's
__________________
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 08-21-2007, 10:53 PM Re: Simple embed anybody know how to do this
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Hmmm, so what I you do...

You could make a subdomain and put all of the embed files in there, and then request all of the files from there.

First make a MySQL database and a table named files with two columns...id and url. Then you fill in the ids incrementing and the file urls in the url column.

Then make a file named index.php and then paste this in there:
PHP Code:
<?php

//DB CONNECT
//DB SELECT

$file $_SERVER['QUERY_STRING'];

$query mysql_query("SELECT * FROM files WHERE id='$file'");
$result mysql_fetch_array$query );

header("Location: ".$result['url']);

?>
Then in your page:

Code:
<embed src="embeds.technologyforever.com/?1">
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-21-2007, 11:58 PM Re: Simple embed anybody know how to do this
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Talk to me some time maybe you could 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!
 
Old 08-23-2007, 05:27 PM Re: Simple embed anybody know how to do this
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
This code still doesn't work
Code:
http://content.technologyforever.com/?11
__________________
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 08-23-2007, 06:05 PM Re: Simple embed anybody know how to do this
The PHP Professor

Posts: 340
Name: Alex
Location: Behind You
Trades: 0
Ok, hold on a second. I want to get this straight. You want links like YouTube's, like this(its a dead link):

http://www.youtube.com/watch?v=WcV77WW


Then you want to use something like this:

PHP Code:
<?php
//this file is called "link.php" for reference

//get the id of link
$link_id $_GET['id'];
//make the input secure so you are not vulnerable to hackers
$link_id mysql_real_escape_string trim $link_id ) );

//Connect o your database and get the requested information
//DB CONNECT
//DB SELECT
$query mysql_query "SELECT link_url FROM links WHERE link_id={$link_id});
$result mysql_fetch_array $query );

//send that person to the page that is in the database
header"Location: ".$result['link_url'] );
?>
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
Reply     « Reply to Simple embed anybody know how to do this
 

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.28214 seconds with 12 queries