problema su php skripto idejimu i saita.

problema su php skripto idejimu i saita.

Tai va turiu skripta:
(jis parodo kiek suo metu mano saite lankutoju)

<?
$settijd = &quot;1&quot;;
$bestandsnaam = &quot;online.dat&quot;;
if (!$datumi) $datumi = dirname(FILE).&quot;/$bestandsnaam&quot;;
$datum = date(&quot;d-m-Y&quotMirkt;
$test=&quot;hallo&quot;;
$tijd = @time();
$ip = $REMOTE_ADDR;
$string = &quot;$ip|$tijd|$datum\n&quot;;
$a = fopen(&quot;$bestandsnaam&quot;, &quot;a+&quotMirkt;
fputs($a, $string);
fclose($a); $tijduit = time()-(60*$settijd); $all = &quot;&quot;;
$i = 0; $datumi = file($bestandsnaam);
for ($num = 0; $num < count($datumi);
$num++) { $stukken = explode(&quot;|&quot;,$datumi[$num]);
if ($stukken[1] > $tijduit) { $all .= $stukken[0]; $all .= &quot;,&quot;;
} $i++; } $all = substr($all,0,strlen($all)-1); $arraypieces = explode(&quot;,&quot;,$all);
$gebruikers = count(array_flip(array_flip($arraypieces)));
if ($gebruikers ==1){
print &quot;Dabar yra $gebruikers lankytojas&quot;;
}ELSE{;
print &quot;Dabar yra $gebruikers lankytojai&quot;;
};
$dell = &quot;&quot;;
for ($numm = 0;
$numm < count($datumi);
$numm++) { $kolomen = explode(&quot;|&quot;,$datumi[$numm]);
if ($kolomen[1] > $tijduit) { $dell .= &quot;$kolomen[0]|$kolomen[1]|$kolomen[2]&quot;;
} } if (!$datumi) $datumi = dirname(FILE).&quot;/$bestandsnaam&quot;; $tijd = @time();
$ip = $REMOTE_ADDR; $string = &quot;$dell&quot;;
$a = fopen(&quot;$bestandsnaam&quot;, &quot;w+&quotMirkt;
fputs($a, $string);
fclose($a);
?>

susikuriau online.php su notepadu zodziu idejau i notepada sita scripta.

paskui sukuriau online.dat

dar pakui parasiau su notepadu:

<html>
<head>
<title> las </title>
</head>
<body> <? include &quot;online.php&quot; ?>
</body>
</html>

isasugojau online.html

ir man nieko nerodo tai ka as darau blogai - padekit.

aciu Šypsena

Mielasis, jeigu faile yra php scripto intarpas, tada tą failą reikia išsaugoti ne kaip .html, o kaip .php

nu ir kad nieko nesigauna

http://www.freewebs.com/arcibaldis/on.php

pasiziurekit

parasykit man viska ka i ka irasyt reikia nerandu literaturos kuri padetu ismokt. PADEKIT

Šypsena hmm… na i koda tingejau gilintis perdaug, bet problema gali buti tame, kad includini <? o ne <?php… galbut tavo servas nesuportina trumopojo <? …

ir jo… jeigu tu nori ka nors includinti, tai neseivink html Šypsena

nu nzn pakeiciau i :

<html>
<head>
<title> las </title>
</head>
<body> <?php include &quot;online.php&quot; ?>
</body>
</html>

Nieko nerodo

ir i:

<html>
<head>
<title> las </title>
</head>
<body> <?php include &quot;online.php&quot; php?>
</body>
</html>

tai pat nieko nerodo !!!

o skripta tai gavau t.y nusikopinau is:

http://hondaklubas.hypermart.net/saitass/index.php?cat=php&id=2

o pavizdys sito scripto yra:

http://hondaklubas.hypermart.net/saitass/index.php?cat=php&id=2dem
o

[quote][Dalius] rašė:
Nieko nerodo
tai pat nieko nerodo !!!
[/quote]

Įdėmiai paskaityk:
http://members.freewebs.com/faqs.jsp

Can I run ASP scripts? Can I use ColdFusion????
Ne Due to security reasons, we do not allow these types of applications and scripts to be run on our servers. You can however link to remote scripts from your website.

What about MySQL, MSACCESS, and PHP????
Ne Unfortunately, FreeWebs does not offer these functions.

Can I use CGI and PERL scripts????
TaipWe do support these types of scripts. CGI/PERL accounts are specially created for users and can be signed up for after logging in.

Įdėmiai paskaityk:
http://members.freewebs.com/faqs.jsp

Can I run ASP scripts? Can I use ColdFusion????
Ne Due to security reasons, we do not allow these types of applications and scripts to be run on our servers. You can however link to remote scripts from your website.

What about MySQL, MSACCESS, and PHP????
Ne Unfortunately, FreeWebs does not offer these functions.

Can I use CGI and PERL scripts????
TaipWe do support these types of scripts. CGI/PERL accounts are specially created for users and can be signed up for after logging in.

[/quote]

Na aciu reiks pradet FAQ skaityt ( niekad neskaiciau iki siandienos )