Hi! Karthik, Thankyou for reply!!! You too will get if u try to execute the following files.. This is not the problem with php.exe. Every one will get if anybody try to execute the following logic.
You asked me how u r managing the problem.. I am managing like following: 1. Remove the if condition (if $n==2) from authentication.php and execute .. 2. Now replace that if condition and now try to execute then problem will be solved. Best Regards Balaji -----Original Message----- From: TV Karthick Kumar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 5:06 PM To: Balaji Ankem Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment. Hi, From the surface leve, it looks like your php.exe corrupted and probably crashed ?. Or doesn't works properly with your webserver, PWS, Apache or whatever you have ?. But I don't know how did you manage to work with such a *thing* for the past 1 year ?. Karthick > > Hi, > I am able to produce the following problem 100% in WINDOWS. > > Problem is u can not produce success message in new browser context > .. > > Error: php.exe has generated some errors and will be closed by > windows. > > I am facing this problem from last 1 year. > > Files > > Login.html > ====================== > > <!DOCTYPE html public "-//w3c//dtd html 4.0 transitional//en"> <html> > > <body ONLOAD="document.login.emp_id.focus()"> > <font face="arial" > > <br><br><center> <h1> WELCOME TO LOGIN PAGE </h1></center><br><br> > <center> <form name="login" method="post" > action="./authentication.php"> <table border="0" width="100%"> > <center> > <tr><td width="50%" align="right"><b><font size="2" > face="Arial">Employee No </font></b></td><td width="5%"></td><td > width="50%"><input type="text" size="10" name="emp_id" maxlength="10" > value=""></td></tr> > <tr><td width="50%" align="right"><b><font size="2" > face="Arial">Password </font></ > b></td><td width="5%"></td><td width="50%" ><input type="password" > size="10" name="emp_pass" maxlength="10" value=""></td></tr> <tr> > <td width="50%" align="right"> > <p align="left"> > > </td> > <td width="5%"> > </td> > <td width="50%"> > <p align="left"> <input type="submit" > Value="LOGIN"></td> > </tr> > > </center> > </table> > </center> > </form> > </body> > </html> > =============================== > > Authentication.php > ==================================== > <?php > > // Connect to MySQL > > if (isset ($HTTP_POST_VARS{"emp_id"}) && isset > ($HTTP_POST_VARS{"emp_pass"})) > { > $connection=mysql_connect( 'localhost', 'balaji', > 'pingpong' ) > or die ( 'Unable to connect to server.' > ); > > // Select database on MySQL server > > mysql_select_db( 'amerm' ) or die ( 'Unable to select database.' ); > > // Formulate the query > > > $sql = "SELECT * FROM employee WHERE emp_id = '$emp_id' > AND emp_pass = PASSWORD('$emp_pass')"; > > // Execute the query and put results in $result > > $result = mysql_query( $sql ) or die ( 'Unable to > execute query.' ); > > // Get number of rows in $result. > > $num = mysql_numrows( $result ); > > > > if ( $num != 0 ) > { > $row = mysql_fetch_object($result); > > // A matching row was found - the user is > authenticated. > //start a new session by registering the > employee number. > session_start(); > session_register("user","pw"); > $user=$emp_id; > $pw =$emp_pass; > > //This is the value from employee table ..just > simplified for simulating this problem > > $n=2; > > if ($n=="2") > { > //close mysql connection > mysql_close($connection); > header("Location: success.php"); > exit; > } > } > > else > { > //close mysql connection > mysql_close($connection); > //User does not exist or not authenticated. > header("Location:not_authorized.html"); > exit; > } > } > > else > { > //User does not exist or not authenticated. > header("Location:wrongusage.html"); > exit; > } > ?> > ================================================= > > Success.php > ======================================== > > <?php > > > echo "you have logged in successfully!!!!!<br>"; > > echo "Session variables<br>"; > > echo $HTTP_SESSION_VARS["user"].$HTTP_SESSION_VARS["pw"]; > > ?> > > ======================================= > > Can anybody tell me what is causing the problem. > > Any help would be very appreciable. > > Thanks in advance > Balaji > > ------------------------------------------------------------------------ ---- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
**************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ********************************************************************
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php