Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,957
Naujausias narys: keistuole

Naujausi straipsniai

Paskutiniai nariai

Darexs 6 dienos
Nepas 1 savaitė
keistuole 3 savaitės
Gizmis 5 savaitės
Reikalas 5 savaitės
Rytis14 savaitės
MaFetas18 savaitės
ozzWANTED20 savaitės
saulyzas22 savaitės
TOMIJUS23 savaitės
Jaunelis38 savaitės
lanis39 savaitės
And2s39 savaitės
Memento Mori44 savaitės
Quwqkibor47 savaitės
asirija51 savaitės
tomeem53 savaitės
weberiz56 savaitės
mRokass58 savaitės
kartoonas59 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.191.236.193
Naujienų: 529
Straipsnių: 235
Temų: 52,589
Postų: 522,539
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.

Nepas
2025 Bal. 9 17:04:13
drovus

Nepas
2025 Bal. 9 17:04:08
drovus

Gizmis
2025 Kov. 15 14:03:50
OMG, smagu matyt sita puslapi veikianti

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?

Š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ų: 1070      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ą: