problema su php skripto idejimu i saita.
Tai va turiu skripta:
(jis parodo kiek suo metu mano saite lankutoju)
<?
$settijd = "1";
$bestandsnaam = "online.dat";
if (!$datumi) $datumi = dirname(FILE)."/$bestandsnaam";
$datum = date("d-m-Y"
$test="hallo";
$tijd = @time();
$ip = $REMOTE_ADDR;
$string = "$ip|$tijd|$datum\n";
$a = fopen("$bestandsnaam", "a+"
fputs($a, $string);
fclose($a); $tijduit = time()-(60*$settijd); $all = "";
$i = 0; $datumi = file($bestandsnaam);
for ($num = 0; $num < count($datumi);
$num++) { $stukken = explode("|",$datumi[$num]);
if ($stukken[1] > $tijduit) { $all .= $stukken[0]; $all .= ",";
} $i++; } $all = substr($all,0,strlen($all)-1); $arraypieces = explode(",",$all);
$gebruikers = count(array_flip(array_flip($arraypieces)));
if ($gebruikers ==1){
print "Dabar yra $gebruikers lankytojas";
}ELSE{;
print "Dabar yra $gebruikers lankytojai";
};
$dell = "";
for ($numm = 0;
$numm < count($datumi);
$numm++) { $kolomen = explode("|",$datumi[$numm]);
if ($kolomen[1] > $tijduit) { $dell .= "$kolomen[0]|$kolomen[1]|$kolomen[2]";
} } if (!$datumi) $datumi = dirname(FILE)."/$bestandsnaam"; $tijd = @time();
$ip = $REMOTE_ADDR; $string = "$dell";
$a = fopen("$bestandsnaam", "w+"
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 "online.php" ?>
</body>
</html>
isasugojau online.html
ir man nieko nerodo tai ka as darau blogai - padekit.
aciu
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
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
nu nzn pakeiciau i :
<html>
<head>
<title> las </title>
</head>
<body> <?php include "online.php" ?>
</body>
</html>
Nieko nerodo
ir i:
<html>
<head>
<title> las </title>
</head>
<body> <?php include "online.php" 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?
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?
Unfortunately, FreeWebs does not offer these functions.
Can I use CGI and PERL scripts?
We do support these types of scripts. CGI/PERL accounts are specially created for users and can be signed up for after logging in.
Clandestino rašė:
[quote][Dalius] rašė:
Nieko nerodo
tai pat nieko nerodo
Įdėmiai paskaityk:
http://members.freewebs.com/faqs.jsp
Can I run ASP scripts? Can I use ColdFusion?
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?
Unfortunately, FreeWebs does not offer these functions.
Can I use CGI and PERL scripts?
We 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 )