Closed

I would like to hire a PHP Developer

Hello, I found this really nice MP4 Streaming PHP Script online and I just need some help so i can grab videos from remote url's instead of inside the server. For example, right now it only grabs from [url removed, login to view] but i would like to make it grab the video from [url removed, login to view]

Only willing to pay $10, heres the script:

<?php

$file = '[url removed, login to view]';

$fp = @fopen($file, 'rb');

$size = filesize($file); // File size

$length = $size; // Content length

$start = 0; // Start byte

$end = $size - 1; // End byte

header('Content-type: video/mp4');

//header("Accept-Ranges: 0-$length");

header("Accept-Ranges: bytes");

if (isset($_SERVER['HTTP_RANGE'])) {

$c_start = $start;

$c_end = $end;

list(, $range) = explode('=', $_SERVER['HTTP_RANGE'], 2);

if (strpos($range, ',') !== false) {

header('HTTP/1.1 416 Requested Range Not Satisfiable');

header("Content-Range: bytes $start-$end/$size");

exit;

}

if ($range == '-') {

$c_start = $size - substr($range, 1);

}else{

$range = explode('-', $range);

$c_start = $range[0];

$c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size;

}

$c_end = ($c_end > $end) ? $end : $c_end;

if ($c_start > $c_end || $c_start > $size - 1 || $c_end >= $size) {

header('HTTP/1.1 416 Requested Range Not Satisfiable');

header("Content-Range: bytes $start-$end/$size");

exit;

}

$start = $c_start;

$end = $c_end;

$length = $end - $start + 1;

fseek($fp, $start);

header('HTTP/1.1 206 Partial Content');

}

header("Content-Range: bytes $start-$end/$size");

header("Content-Length: ".$length);

$buffer = 1024 * 8;

while(!feof($fp) && ($p = ftell($fp)) <= $end) {

if ($p + $buffer > $end) {

$buffer = $end - $p + 1;

}

set_time_limit(0);

echo fread($fp, $buffer);

flush();

}

fclose($fp);

exit();

?>

Skills: PHP

See more: php laravel developer hire, php developer hire madurai, php developer hire bs20, need php developer hire, php developer hire, php developer hire mumbai, buddypress developer website hire, developer php iran, sql php hire

About the Employer:
( 0 reviews ) Canada

Project ID: #12202798

11 freelancers are bidding on average $41 for this job

A2Design

Hi, Nice project you have there, let us help you with it! Our team is Russian-Canadian. We code in PHP. Check our recent projects here http://www.a2design.biz/portfolio_ Here’s a little video about our team too! ht More

$30 USD in 1 day
(80 Reviews)
8.4
tanpn89

Dear Sir or Madam, How are you doing! These are some PHP sites I worked on: - tokyoapartments.online - justinvandeventer.com - japan-village.com - gooddaytourusa.com - snakebossreptileshows.com.au - giatotmekon More

$25 USD in 10 days
(56 Reviews)
5.7
justTry

Ten bucks, you got to be kidding. I have my own script that does exactly this, demo here: http://drtech76.sytes.net/php_stream_video/test.php

$150 USD in 0 days
(126 Reviews)
5.7
ervivekit

Hello, I have 6 + year's of working experience in Web Development industry, and I have worked on various type's of project's like E-commerce, Music , Sports, Web-Services and etc. In various php plateform like Opencart More

$25 USD in 1 day
(27 Reviews)
4.1
vantuanvn

Hello sir, I can work on this project easily. I am from Vietnam, I have 8 year in Software Industry with many running product. I have experience in web application with many large sites in PHP, Java enterprise applic More

$25 USD in 1 day
(12 Reviews)
4.2
sherlyn77

Hello there, I have reviewed your job description as well and very confident to complete this project. I am expert Web developer, designer and troubleshooter. Below are the core ares where I have the greate exposu More

$45 USD in 3 days
(4 Reviews)
3.6
deltatechnepal

Hello, We are a website design and development company. Our expertise include: - Open source Platform Development (Wordpress, Drupal, Joomla) - Ecommerce Development (Magento, Zencart, Prestashop, Woocommerce, Op More

$25 USD in 1 day
(2 Reviews)
2.6
zhangwei9999

Dear client, A great job for me while I am an expert of php. Don be worry even not long on freelancer, however I have many experience in this area so I can complete your job perfectly. Please hire me and sen More

$55 USD in 1 day
(1 Review)
1.1
pratiksangani123

Hi there.! We are very much interested in your current project.We believe we are a perfect match for your project because here at Caliente iTech we all believe in customer satisfaction first.Also, we have prior experi More

$25 USD in 1 day
(1 Review)
0.3
mascotsoft4

Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project befor More

$23 USD in 6 days
(0 Reviews)
0.0
arsalsoft3

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c More

$25 USD in 1 day
(0 Reviews)
0.0