Quote:
Originally Posted by Neeeeeeeeeel.-
Then you can upload it with sockets to your website... it's possible but I don't think someone do this for you.
|
I don't need to upload and download, there a script maybe this:
PHP Code:
<?php
function zipcompressfile($source,$destination,$filename,$level=false)
{
$dest=$destination.$filename.'.zip';
$mode='wb'.$level;
$error=false;
echo $source.$filename.' -> '.$dest.'<br>';
if($fp_out=gzopen($dest,$mode))
{
if($fp_in=fopen($source.$filename,'rb'))
{
while(!feof($fp_in))
{
gzwrite($fp_out,fread($fp_in,1024*512));
}
fclose($fp_in);
}
else
{
$error=true;
}
gzclose($fp_out);
}
else $error=true;
if($error) return false;
else return $dest;
}
$demo_dir = 'C:/HLDS/cstrike/';
$dl_dir = 'C:/AppServ/www/hltv_demos/';
$handle = opendir($demo_dir);
if ($handle)
{
while (false !== ($fails = readdir($handle)))
{
if ( preg_match("/(.*).dem/", $fails, $demo) )
{
zipcompressfile($demo_dir, $dl_dir, $fails);
}
}
closedir($handle);
}
?>
So with this i can make them in site without upload them, but why they wont help me