Raised This Month: $ Target: $400
 0% 

HLTV And Auto Record And Demos On Website !


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-03-2014 , 06:22   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #6

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
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
AMeEeRo is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode