Jump to content
GIGN Forum

Recommended Posts

Uzliku savam serverim hltv+web`a ieliku demo failus, bet nevar novilkt.

tatad izveidoju C:\AppServ\www\demo.php scriptu :::

<?php

if ($handle = opendir('D:\games\csdm\cstrike\demo')) {

while (false !== ($file = readdir($handle))) {

if (strlen($file) > 4)

{

$gabali = explode("-", $file);

$date = $gabali[1];

$mape = $gabali[2];

$mapesgabali = explode(".", $mape);

$name = $mapesgabali[0];

$year = substr($date,0,2);

$month = substr($date,2,2);

$day = substr($date,4,2);

$hour = substr($date,6,2);

$minute = substr($date,8,2);

echo "<center> $day.$month.$year             $hour:$minute             $name            

<a href=\"demo/$file\">Novilkt</a></br></center>";

}

}

closedir($handle);

}

?>

Ka redzat webs ir uz C:\ bet serveris uz D:\ un demo rakstas arii uz D:\. Kad eju http://webs/demo.php un spiezhu novilkt kadu no demo parada:::

Not Found

The requested URL /demo/dust-0803081916-de_dust.dem was not found on this server.

Apache/2.2.3 (Win32) PHP/5.1.6 Server at cs-illegal.oo.lv Port 80

Link to comment
Share on other sites

Es taga ievietoju scriptu , kas sakomprese failus,bet sakompresetie faili neko nesver.Kapec taa? Visi direktoriji man noraditi pareizi:

$demo_dir = 'D:/games/csdm/cstrike/demo'; // Folder with .dem files

$dl_dir = 'C:/AppServ/www/demo/'; // Folder, where to put compressed files

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...