-
Posts
324 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by emanuel
-
-
really i dont know is hosted on same machine or not..yes here i put ip adress,but didn't work..
Or someone can give me a script that working ?Script that show ch1 is online.Thx
-
i try to put 127.0.0.1 but same..not working huh? help ?
-
-
Hllow guys,i post here because i hope i get some help.
I have a script for my website it show ch1-2 ,db and auth is on or off,i put server ip,i put correct ip..but it's not working,it's showing offline all time,here it's the script!Thx !
<tr class="top" > <td width="141"><font size="3"><font style="color:Lime"><span></span> <a><font face="Arial"><?php $ip="SERVER IP"; //ip server $listaPorturi=array( 11000, //port database din conf.txt din usr/home/game/db... 31009, // auth 21000, //port ch1 22000); //port ch2 $i=0; echo "<table><tr><td><b>DB</b></td><td><b>Auth</b></td><td><b>CH1</b></td><td><b>CH2</b></td></tr>"; echo "<tr>"; foreach ($listaPorturi as $port){ $verificare = @fsockopen($ip, $port, $errno, $errstr, 1); echo "<td style='text-align: center;'>"; if (!$verificare) { echo "OFF"; } else { echo "ON"; } echo "</td>"; @fclose($verificare); $i++; } echo "</tr></table>"; ?> </i></font></a><br></size></td> </tr>
Hope i get some help here !
script error
in Community Support - Questions & Answers
Posted
Hellow,when i loggout from a itemshop i get this error :
Warning: Cannot modify header information - headers already sent by (output started at /home/metindi3/public_html/market/include/functions.php:1) in /home/metindi3/public_html/market/include/functions.php on line 205
this is line 205 from functions.php :
function logout() { session_destroy(); unset($_SESSION['id']); [line 205] --> header("Location: index.php?p=login"); }
and when i want to loggin i get this error :
Warning: Cannot modify header information - headers already sent by (output started at /home/metindi3/public_html/market/include/functions.php:1) in /home/metindi3/public_html/market/include/functions.php on line 81
this is function line 81 :
if($userRow['status']=='OK') { $_SESSION['id'] = $userRow['id']; $_SESSION['fingerprint'] = md5($_SERVER['HTTP_USER_AGENT'] . 'x' . $_SERVER['REMOTE_ADDR']); if($shop) header("Location: shop?p=home"); else [line 81] ----> header("Location: index.php?p=home"); return true;
i must refresh the page and warning is gone..and everything is ok..some help please ?
Thx