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 4557878
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:34:13+00:00 2026-05-21T17:34:13+00:00

I am not even quite sure how to ask this question as it is

  • 0

I am not even quite sure how to ask this question as it is sort of an overall conceptual issue but I figured I’d give it a try.

I am trying to create a process conceptually similar to many of the video hosting websites out there like Vimeo. Using Vimeo as an example, the user uploads a video to the main server, the video is added to a processing queue, and the user is free to go do other things while the video is processing. Sometime later, the user receives an email saying that the processing is complete and the video can now be accessed and the user can do whatever they want with it.

My question is this, how does a system like this work? My experience is primarily with PHP where all the processing is tied directly to the code in that page (or via includes). How do you deal with things like this processing while the user navigates away from the page?

This is my guess… Please correct me. The page submitted by the user adds their file to the processing software queue via some sort of API Hook. The processor which is probably written in some other language like C or Java or whatever, does its thing and then when it is finished, it fires a call to some PHP page that then sends the user an email and does whatever needs to be done with the video.

I guess I am just trying to understand how the “black boxes” of some of the big websites out there work, at least conceptually. Can anyone help me out here? Sorry it is such a big, vague question.

  • 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-05-21T17:34:14+00:00Added an answer on May 21, 2026 at 5:34 pm

    One solution to your question would be to start a new process fork which handles the video processing and mailing the user, and then the main process just continues as usual. This will prevent the main process to stoping and forcing the user to wait for the processing to finish.

    You can read about creating process forks in php here: http://php.net/manual/en/book.pcntl.php

    Then there are applications which handels video processing such as ffmpeg: http://www.ffmpeg.org/

    Instead of having to use a new programming language you just execute a cli application such as ffmpeg using the exec function: http://php.net/manual/en/function.exec.php

    You need to figure out a way to que the processes so that the server won’t overload. Maybe there needs to be some functionality which checks the database for active processes and waits until the table have less active processes than which is allowed.

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

Sidebar

Related Questions

I am not even sure how to ask this question. I want something that
I'm not even quite sure how to properly word this, but here goes. I
I'm not even sure if this is quite possible to do with MySQL, but
I'm not quite sure how to go about framing this question, but I am
I'm not quite sure how to start explaining this, but I'll try. I started
Not even sure how to explain this but I connect to a remote computer
I'm not even sure how I should phrase this question. I'm passing some CustomStruct
I'm not even sure what this is called? But I'm trying to learn what
Hello! I'm not even sure if this is possible, but hopefully it is in
Not quite sure how to do this or if it even is a proper

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.