Navigacija

Vartotojų tinkle

Prisijungusių svečių: 419
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

Reikalas 4 savaitės
Rytis 6 savaitės
MaFetas10 savaitės
ozzWANTED12 savaitės
saulyzas14 savaitės
TOMIJUS15 savaitės
Jaunelis30 savaitės
lanis30 savaitės
And2s31 savaitės
Memento Mori36 savaitės
Quwqkibor38 savaitės
asirija42 savaitės
tomeem44 savaitės
weberiz48 savaitės
mRokass50 savaitės
kartoonas51 savaitės
grunskiz54 savaitės
Bruksnys54 savaitės
illusion54 savaitės
ordo55 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 13.59.23.165
Naujienų: 529
Straipsnių: 235
Temų: 52,589
Postų: 522,538
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

ozzWANTED
2024 Lap. 30 15:11:14
Taip, vis dar up šypsosi

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
online/offline list'as
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: Lordcraft Peržiūrų: 1040      Spausdinti temą
2007 Lap. 29 02:11:05          1 žinutė iš 4
Spausdinti pranešimą
Daleiskim turiu koda kuri rasau php-fusion i pridetini psl ir rodo serverio statusa:

<?php
$host = 'google.lt';
$port = '80';

function onlineIndicator($host ,$port){
$online=false;

$fp = @fsockopen($host, $port, $errno, $errstr, 1);
if($fp) {
$online=true;
}

if ($online){
return 'online';
} else {
return 'offline';
}
}
echo onlineIndicator($host,$port);
?>




ir su tuo kodu man reikia sukurti lentele. va scriptas:

   <tr>
<td>
<center><TABLE BORDER="" CELLSPACING="" CELLPADDING="" WIDTH="400" HEIGHT="" ALIGN="" VALING="" BGCOLOR="" BORDERCOLOR="" BACKGROUND="">
<CAPTION ALIGN=""></CAPTION>
<TR ALIGN="" VALIGN="" BGCOLOR="" BORDERCOLOR="">
<TD WIDTH="100" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><b>Name</b></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><b>IP/http://www</b></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><b>STATUS</b></center></TD>
</tr>

<TD WIDTH="" HEIGHT="" ALIGN="left" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center<b>GOOGLE</center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><a href=http://google.lt target='main'> <strong>google.lt</strong></a></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center>
<?php
$host = 'google.lt';
$port = '80';

function onlineIndicator($host ,$port){
$online=false;

$fp = @fsockopen($host, $port, $errno, $errstr, 1);
if($fp) {
$online=true;
}

if ($online){
return 'online';
} else {
return 'offline';
}
}
echo onlineIndicator($host,$port);
?>
</center></TD>
</tr>

</table></center></br>
</td>
</tr>




bek kai parasau ta koda pora kartu kad gautusi lentele man meta error nes kaip suprantu dvieju php negali buti. kaip padaryti kad vienam scripte butu galima surasyti daug ip / www ir portu kad rodytu juos online arba offline ?


Redagavo Lordcraft 2007 Lap. 29 05:11:05
2007 Lap. 29 19:11:01          2 žinutė iš 4
Spausdinti pranešimą
Paprasciausiai turbut butu per iframe idet
2007 Lap. 29 20:11:04          3 žinutė iš 4
Spausdinti pranešimą
tikrai ne iframe šypsosi
 <?php
function onlineIndicator($host ,$port){
$online=false;

$fp = @fsockopen($host, $port, $errno, $errstr, 1);
if($fp) {
$online=true;
}

if ($online){
return 'online';
} else {
return 'offline';
}
}
?><tr>
<td>
<center><TABLE BORDER="" CELLSPACING="" CELLPADDING="" WIDTH="400" HEIGHT="" ALIGN="" VALING="" BGCOLOR="" BORDERCOLOR="" BACKGROUND="">
<CAPTION ALIGN=""></CAPTION>
<TR ALIGN="" VALIGN="" BGCOLOR="" BORDERCOLOR="">
<TD WIDTH="100" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><b>Name</b></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><b>IP/http://www</b></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><b>STATUS</b></center></TD>
</tr>

<TD WIDTH="" HEIGHT="" ALIGN="left" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center<b>GOOGLE</center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><a href=http://google.lt target='main'> <strong>google.lt</strong></a></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center>
<?php
echo onlineIndicator('google.lt', 80);
?>
</center></TD>




<TD WIDTH="" HEIGHT="" ALIGN="left" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center<b>YAHOO</center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><a href=http://yahoo.com target='main'> <strong>yahoo.com</strong></a></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center>
<?php
echo onlineIndicator('yahoo.com', 80);
?>
</center></TD>



</tr>

</table></center></br>
</td>
</tr>




norėdamas įdėti naują serverį naudok

<TD WIDTH="" HEIGHT="" ALIGN="left" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center<b>YAHOO</center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center><a href=http://yahoo.com target='main'> <strong>yahoo.com</strong></a></center></TD>
<TD WIDTH="" HEIGHT="" ALIGN="" VALIGN="" NOWRAP COLSPAN="" ROWSPAN="" BGCOLOR="" BORDERCOLOR="" BACKGROUND=""><center>
<?php
echo onlineIndicator('yahoo.com', 80);
?>




O šitoje eilutėje įrašai serverio duomenis:
echo onlineIndicator('yahoo.com', 80);




Jei neveiks, sakyk, kokį error išmeta

2007 Lap. 29 20:11:23          4 žinutė iš 4
Spausdinti pranešimą
aciu rytimerkia akį

Peršokti į forumą: