My super german coder dude(who doesnt have one) made this thing which skips the 30sec download time wait at this URL
<!-- m --><a class="postlink" href="http://halo3forum.com/Gameplays/268/268/halo_video_entry.html">http://halo3forum.com/Gameplays/268/268 ... entry.html</a><!-- m -->
(and others on that site)
and outputs the "stream video" and "download" links, he had to rush off without testing it and it doesnt work lol
test links
<!-- m --><a class="postlink" href="http://uploadcrap.com/ts/link.php">http://uploadcrap.com/ts/link.php</a><!-- m --> (loads of errors)
<!-- m --><a class="postlink" href="http://rapidshare.phpnet.us/">http://rapidshare.phpnet.us/</a><!-- m --> (no errors)
source
<?php
unset($stream);
unset($file);
if(isset($_GET["u"]))
{
$u=$_GET["u"];
function geturl($r)
{
if(
ereg(
preg_quote('<a href=http://www.phpbuilder.com/board/archive/index.php/"').'([^"]+)'.
preg_quote('"><img src=http://www.phpbuilder.com/board/archive/index.php/\'http://halo3forum.com/images2/fullversion.gif\' border=0></a>')
,$r,$regs)
)
return $regs[1];
}
function getstream($r)
{
if(
ereg(
preg_quote('<a href=http://www.phpbuilder.com/board/archive/index.php/"').'([^"]+)'.
preg_quote('" target=_blank><img src=http://www.phpbuilder.com/board/archive/index.php/\'http://halo3forum.com/images2/stream.gif\' border=0></a>')
,$r,$regs)
)
return $regs[1];
}
function get_url_stream($u)
{
$r=file_get_contents($u);
$a=geturl($r);
$b=getstream($r);
return Array($a,$b);
}
$a=get_url_stream($u);
$file=$a[0];
$stream=$a[1];
}
?>
<html>
<body>
<form>
Enter download page URL:
<input name="u" type="text"><input type="submit" value="go"><br>
Download file:<br><?php if(isset($file)) echo $file;?><br>
Stream:<br><?php if(isset($stream)) echo $stream;?><br>
</form>
</body>
</html>
note: he did this in like 30secs after i asked if it was possiblegive it a go by replacing:
$r=file_get_contents($u);
with:
$r=file($u);
If that doesn't work, you might have to adjust your php settings ( from the manual, <!-- m --><a class="postlink" href="http://uk2.php.net/manual/en/function.file-get-contents.php">http://uk2.php.net/manual/en/function.f ... ntents.php</a><!-- m -->, Tip
You can use a URL as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and Appendix M, List of Supported Protocols/Wrappers for a list of supported URL protocols.
<!-- m --><a class="postlink" href="http://halo3forum.com/Gameplays/268/268/halo_video_entry.html">http://halo3forum.com/Gameplays/268/268 ... entry.html</a><!-- m -->
(and others on that site)
and outputs the "stream video" and "download" links, he had to rush off without testing it and it doesnt work lol
test links
<!-- m --><a class="postlink" href="http://uploadcrap.com/ts/link.php">http://uploadcrap.com/ts/link.php</a><!-- m --> (loads of errors)
<!-- m --><a class="postlink" href="http://rapidshare.phpnet.us/">http://rapidshare.phpnet.us/</a><!-- m --> (no errors)
source
<?php
unset($stream);
unset($file);
if(isset($_GET["u"]))
{
$u=$_GET["u"];
function geturl($r)
{
if(
ereg(
preg_quote('<a href=http://www.phpbuilder.com/board/archive/index.php/"').'([^"]+)'.
preg_quote('"><img src=http://www.phpbuilder.com/board/archive/index.php/\'http://halo3forum.com/images2/fullversion.gif\' border=0></a>')
,$r,$regs)
)
return $regs[1];
}
function getstream($r)
{
if(
ereg(
preg_quote('<a href=http://www.phpbuilder.com/board/archive/index.php/"').'([^"]+)'.
preg_quote('" target=_blank><img src=http://www.phpbuilder.com/board/archive/index.php/\'http://halo3forum.com/images2/stream.gif\' border=0></a>')
,$r,$regs)
)
return $regs[1];
}
function get_url_stream($u)
{
$r=file_get_contents($u);
$a=geturl($r);
$b=getstream($r);
return Array($a,$b);
}
$a=get_url_stream($u);
$file=$a[0];
$stream=$a[1];
}
?>
<html>
<body>
<form>
Enter download page URL:
<input name="u" type="text"><input type="submit" value="go"><br>
Download file:<br><?php if(isset($file)) echo $file;?><br>
Stream:<br><?php if(isset($stream)) echo $stream;?><br>
</form>
</body>
</html>
note: he did this in like 30secs after i asked if it was possiblegive it a go by replacing:
$r=file_get_contents($u);
with:
$r=file($u);
If that doesn't work, you might have to adjust your php settings ( from the manual, <!-- m --><a class="postlink" href="http://uk2.php.net/manual/en/function.file-get-contents.php">http://uk2.php.net/manual/en/function.f ... ntents.php</a><!-- m -->, Tip
You can use a URL as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and Appendix M, List of Supported Protocols/Wrappers for a list of supported URL protocols.