Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread scott furt

So it seems to be that your header is failing then.

try using the full URL:
http://localhost/.../success.php
instead of just
"success.php"

and verify that it's spelled correctly and
is lowercase (if on a *nix system)

Balaji Ankem wrote:
> No it z not failing if I replace it.
> 
> -Original Message-
> From: scott furt [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 5:49 PM
> To: php
> Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k
> environment.
> 
> 
> Try replacing header("Location: success.php")
> with something like echo "Here we are";
> 
> does it still fail?
> 
> (I cannot run your code here, becuase without
> your database schema, the mysql queries will
> all fail)
> 
> At a glance, I don't see any glaring errors
> with your script..
> 
> Balaji Ankem wrote:
> 
>>Hi scott,
>>  
>>Yes I examined..
>>It z dying in if loop (if $n==2) at the statement header("Location: 
>>success.php");
>> 
>>It will be helpful to me if u try to execute those files as I told.
>>
>>Thanks in advance
>>Balaji
>>
>>-Original Message-
>>From: scott furt [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, March 19, 2002 5:26 PM
>>To: php
>>Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k
>>environment.
>>
>>
>>Have you examined the PHP error logs?
>>
>>Have you turned up error reporting to the max (E_ALL)
>>and examined what it returned?
>>
>>Have you examined $php_errmsg (if configured in php.ini)?
>>
>>Have you tried putting echo statements every few lines
>>to see exactly where and why the script dies?
>>
>>Balaji Ankem wrote:
>>
>>
>>>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.
>>>
>>>
>>>
>>
>>
>>--
>>--
>>
>>**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.
>>
>>
>>
>> 
>>
>>
>>
> 
> 
> 
> 
> 
> 
> **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




Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread scott furt

Try replacing header("Location: success.php")
with something like echo "Here we are";

does it still fail?

(I cannot run your code here, becuase without
your database schema, the mysql queries will
all fail)

At a glance, I don't see any glaring errors
with your script..

Balaji Ankem wrote:
> Hi scott,
>   
> Yes I examined..
> It z dying in if loop (if $n==2) at the statement header("Location:
> success.php");
>  
> It will be helpful to me if u try to execute those files as I told.
> 
> Thanks in advance
> Balaji
> 
> -Original Message-
> From: scott furt [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 5:26 PM
> To: php
> Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k
> environment.
> 
> 
> Have you examined the PHP error logs?
> 
> Have you turned up error reporting to the max (E_ALL)
> and examined what it returned?
> 
> Have you examined $php_errmsg (if configured in php.ini)?
> 
> Have you tried putting echo statements every few lines
> to see exactly where and why the script dies?
> 
> Balaji Ankem wrote:
> 
>>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.
>>
>>
> 
> 
> 
> 
> 
> **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




RE: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread Balaji Ankem

Hi scott,

Yes I examined..
It z dying in if loop (if $n==2) at the statement header("Location:
success.php");
 
It will be helpful to me if u try to execute those files as I told.

Thanks in advance
Balaji

-Original Message-
From: scott furt [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 19, 2002 5:26 PM
To: php
Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k
environment.


Have you examined the PHP error logs?

Have you turned up error reporting to the max (E_ALL)
and examined what it returned?

Have you examined $php_errmsg (if configured in php.ini)?

Have you tried putting echo statements every few lines
to see exactly where and why the script dies?

Balaji Ankem wrote:
> 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.
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



**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


Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread scott furt

Have you examined the PHP error logs?

Have you turned up error reporting to the max (E_ALL)
and examined what it returned?

Have you examined $php_errmsg (if configured in php.ini)?

Have you tried putting echo statements every few lines
to see exactly where and why the script dies?

Balaji Ankem wrote:
> 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.
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread Balaji Ankem

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
> ==
>
>  
>
> 
> 
>   WELCOME TO LOGIN PAGE 

>action="./authentication.php">  
>  
>   face="Arial">Employee No  width="50%"> value="">
>  
face="Arial">Password    b> size="10" name="emp_pass" maxlength="10" value="">  
>   
>   
>
>   
>   
>   
>   
> Value="LOGIN">
>  
>
>  
> 
> 
> 
> 
> 
> ===
>
> Authentication.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
> 
>
> 
>
> echo "you have logged in successfully!";
>
> echo "Session variables";
>
> 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