Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Thanked 0 Times in 0 Posts

    How to form an queue and how can I give more priority to my premium users

    I am using FFMPEG-PHP latest script for downloading videos from youtube and converting to MP3 format.
    Now I need help on increasing priority of an premium user while downloading videos. Generally process of action will be as follows
    Users will send a youtube link using form. There is converter.class.php file which will download the video from youtube and convert it into required format. Upto here everything is working fine. Later I created a registration form, and I am storing all registered users in my database. I created a new database for this.

    Now I want to write one condition like if user exist in my database I want to convert their files first based on datetime. if not user request will wait in queue till all the remaining downloads complete.

    I need a php code for this. In my converter.class I am not connecting to any database.
    Any help will be precious for me..It is very urget for me

    Thanks in advance

  2. #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 726 Times in 715 Posts
    This forum is for posting code that works to share with other forum users. You should get a moderator to move this to the forum for asking questions.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts