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 Coder
    Join Date
    Oct 2012
    Thanked 0 Times in 0 Posts

    setting up a webserver and use ajax/javascript to send logs to the server

    I want to investigate youtube streaming quality using youtube APIs like the following https://developers.google.com/youtube/js_api_reference

    Using these APIs, the values of quality metrics will be taken on by varables. like number of download bytes, playback duration, I want to log these statistics

    since I can't use javascript to create/write log files on the client side, someone suggests that I need to create a webserver with sql database and use jsonp or Cors to make cross domain ajax requests.

    my idea is:

    set up a webserver with sql database
    create a html(html5)page which embed a youtube video and has javascripts/ajax which log statistics and send these statistics to the webserver
    put the html page on the webserver
    use a client browser to access the html page

    most importantly, I hope that the webserver can be on the same machine with the client, so I use localhost to access the page.

    but I'm not familiar with javascript, ajax, jsonp and webserver, but I hope I can achieve my target as fast as possible, can anyone tell me:

    is there anything wrong with my idea? do I need to adjust my steps?
    what webserver, sql database do I need to set up? any article links about this?

  2. #2
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Thanked 31 Times in 31 Posts
    I'm thinking that you are over complicating things. You could simply use a free web host and use it to test your pages. http://www.6te.net is pretty good for that

    However, the fastest way to set up a web server is with Linux. The terminal makes setting up Apache2, MySql, and PHPMyadmin a 10 minute process.

    I use Debian on my server, and I love it. However I don't run a web server on it.

    What type of box do you plan on running Apache? That might depend on what OS you want to use. Honestly, setting up a web server, and MySql isn't hard. Making and keeping it secure might be a chore for you.

    If you are unaware of what OS you might want to run your web server on I highly suggest Debian.

    Last edited by stevenmw; 10-20-2012 at 07:27 AM.


Posting Permissions

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