Jump to content
GIGN Forum

-=[pamācība]=- Hltv Demo


Recommended Posts

  • 2 months later...
  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

Sorry lai kā mēģinātu man nekas nesanāk :(

Kr4 man iekš hltv.cfg ir

connect "access.oo.lv:27015"
name "ACCESS HLTV"
record "../../../../AppServ/www/demo/access"

Mana web direktorija - C:\Documents and Settings\Toms\My Documents\Toms\AppServ\www\demo

Man iekš hltv.exe rādās - WARNING! DemoFile::StartRecording: couldn't open demo file ../../../../AppServ/www/demo/access-0801040304-de_dust2.dem

Link to comment
Share on other sites

1. īsti nesapratu, tev serveris arī atrodas uz hosta?

respektīvi vis atrodas uz vienas kastes?

2. vai tu gribi no sava datora, uz kura atrodas serveris, rakstīt ar hltv demo, un lai tas saglabājas uz hosta?

ja 2 variants - tad tas nav iespējams, ja nu vienīgais pārsūtīt...

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
Noteikti esam ievērojuši ka iskats ir šausmīgi biedējoš!

Tāpēc šo te kodu:

<?php

if ($handle = opendir('C:/Web/www/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);

}

?>

ierakstām savā "index.php" vai kādā citā *.php failā!

Es so punktu nesaprotu!!!! es so kodu ielieku index.php beigaas bet nekas nemainaas!!! <_<

Edited by rblockXspinner
Link to comment
Share on other sites

  • 3 weeks later...

Pēctam uztaisat failu "demo.php" Kurā ierakstiet sekojošo:

QUOTE

<?php

if ($handle = opendir('C:/Web/www/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);

}

?>

Kā vinju var uztaisīt? <_<

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...