Jump to content

emanuel

Inactive Member
  • Posts

    324
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by emanuel

  1. 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

  2. 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 ! 

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.