Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8546111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:56:34+00:00 2026-06-11T12:56:34+00:00

In my project user will upload a video by pasting a URL from another

  • 0

In my project user will upload a video by pasting a URL from another site. I tried embedly but doesn’t work properly since it gives embedded code for a particular site, YouTube etc. I want to do exactly like this site http://www.myvidster.com/. I tried using cURL code for this:-

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $video_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
curl_setopt($ch, CURLOPT_VERBOSE, true); // Display communication with server
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$json_reply = curl_exec($ch);
curl_close($ch);

and code with file_get_contents is:

$video_url = $_POST['video_url'];
$html = file_get_contents($video_url,true);

But using curl also I got HTML part of some sites only. I am trying for 1 week but still no result. Is it possible to get an embedded code for video from every site? Or I am doing anything wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:56:35+00:00Added an answer on June 11, 2026 at 12:56 pm

    you should be looking into the oembed standard

    this protocol allows you to receive the embed code from multiple video sites that support it, in a standard unified way.
    Click the link to see a list of sites that implement oembed

    http://oembed.com/#section7

    For the other websites that don’t support this standard you can usually fetch the embed code through the open graph protocol (meta og:…) or write html parsing rules for each site to extract the embed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my project user will upload an image and the logo of project will
In my project, user will upload videos. So i have done simple code to
I am working on semantic web project where user will input text query like
In my project there is a scenario that user will log in -> browse
I have a project where the requirements is that a end user will select
I have to start a new project where user authentication/management will be required. A
I'm using Tank Auth and my project will support two access type: normal user
Is there a good tutorial or sample project of how to upload data from
My project will require users to upload uncompressed WAV audio files and once they
I am creating a simple project that will allow me to upload and download

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.