need help with this web script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    eric125's Avatar Private
    Reputation
    1
    Join Date
    Jan 2010
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need help with this web script

    hey i get this error on my voting system for mangos
    Code:
    Warning: session_start() [function.session-start]: open(..\Server\tmp\sess_30f4467b90aa7d1079c4a03ec598afba, O_RDWR) failed: No such file or directory (2) in C:\battredwow server files\MMOtop repack 3.3.5\Server\htdocs\voting\login.php on line 2
    
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\battredwow server files\MMOtop repack 3.3.5\Server\htdocs\voting\login.php:2) in C:\battredwow server files\MMOtop repack 3.3.5\Server\htdocs\voting\login.php on line 2
    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\battredwow server files\MMOtop repack 3.3.5\Server\htdocs\voting\login.php:2) in C:\battredwow server files\MMOtop repack 3.3.5\Server\htdocs\voting\login.php on line 2
    and here is the php file
    Code:
    <?php
    session_start();
    include "language.php";
    include "functions.php";
    $_SESSION['logged_voting'] = 0;
    if (isset($_POST['submit'])){
    	change_db($realm_DB);
    	$user_name = $_POST['username'];
    	$user_pass = sha1(strtoupper($_POST['username'].":".$_POST['password']));
    	$select_acc = "SELECT id, username FROM account WHERE username='$user_name' AND sha_pass_hash='$user_pass'";
    	$results=mysql_query($select_acc) or die (mysql_error());
    	if (mysql_num_rows($results) == 1){
    		$row=mysql_fetch_array($results);
    		$_SESSION['user_id'] = $row['id'];
    		$_SESSION['user_name'] = $row['username'];
    		$_SESSION['logged_voting'] = 1;
    		header ("Refresh: 0; URL=index.php");
    	} else{
    		include "language_form.php";
    		include "title.php";
    ?>
    <p align='center'><font color="red"><?php echo $language['wrong'] ?></font></p>
    <form action="login.php" method="post">
    <table border='1' cellspacing='1' cellpadding='3' align='center'>
    	<tr>
    		<td width='50%'><?php echo $language['username'] ?></td>
    		<td width='50%'><input type="text" name="username"/></td>
    	</tr>
    	<tr>
    		<td><?php echo $language['password'] ?></td>
    		<td><input type="password" name="password"/></td>
    	</tr>
    	<tr>
    		<td colspan='2' align='center'>
    			<input type="submit" name="submit" value="<?php echo $language['submit'] ?>"/>
    			<input type='reset' value='<?php echo $language['reset'] ?>'/>
    		</td>
    	</tr>
    </table>
    </form>
    <?php
    	}
    } else{
    	include "language_form.php";
    	include "title.php";
    ?>
    <p align='center'><?php echo $language['enter_name_and_pass'] ?></p>
    <form action="login.php" method="post">
    <table border='1' cellspacing='1' cellpadding='3' align='center'>
    	<tr>
    		<td width='50%'><?php echo $language['username'] ?></td>
    		<td width='50%'><input type="text" name="username"/></td>
    	</tr>
    	<tr>
    		<td><?php echo $language['password'] ?></td>
    		<td><input type="password" name="password"/></td>
    	</tr>
    	<tr>
    		<td colspan='2' align='center'>
    			<input type="submit" name="submit" value="<?php echo $language['submit'] ?>"/>
    			<input type='reset' value='<?php echo $language['reset'] ?>'/>
    		</td>
    	</tr>
    </table>
    </form>
    <?php
    }
    ?>
    i don't know what wrong can some one help me

    need help with this web script
  2. #2
    bfwlegend's Avatar Member
    Reputation
    4
    Join Date
    Jul 2007
    Posts
    71
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go here that should fix your problem
    Last edited by bfwlegend; 07-20-2010 at 08:48 AM.

  3. #3
    iWoW-Programming's Avatar Sergeant
    Reputation
    6
    Join Date
    Jan 2010
    Posts
    38
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first error leads me to believe that you did not change the default temp dir in you php.ini.

    The other two are just a basic error that we all deal with in php every once in a while, you echoed or printed some type of output to the browser, the session_start() and any other functions that deal with sessions, headers, or cookies MUST come before you use the echo command, or any other command or function that makes browser output, is called.

    Hope this helps!

Similar Threads

  1. Need help with this LUA script, please.
    By Eliteplague in forum WoW Bots Questions & Requests
    Replies: 6
    Last Post: 11-18-2011, 01:27 PM
  2. [Lua Script] Need help with this lua gossip script
    By diviee3 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-21-2010, 07:52 PM
  3. [HELP]I need help with ac-web repack buggs
    By jackdaripper in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 05-21-2008, 06:14 AM
  4. Help with this LUA script
    By jordash in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 03-08-2008, 04:19 PM
  5. Need help with ac web repack
    By Denelly in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 10-31-2007, 04:26 PM
All times are GMT -5. The time now is 12:10 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search