in reply to Re: 500 internal server error !!
in thread 500 internal server error !!

my error log show /tmp/sess_xxxxxx..... line 30 in filename line 30 is the PHP::Session->new() .It is throwing this error when it is not able to create the session hence 500 internal server error is coming... There is nothing else i can count on i don't know perl is difficult in this case the in-built functions are not that smooth to handle such condition either my knowledge is restricted .... i need some way to check whether session is alive or not??? how one can do this ??? Please help me to come out of it. !!!!

Replies are listed 'Best First'.
Re^3: 500 internal server error !!
by moritz (Cardinal) on Aug 20, 2008 at 12:03 UTC
    Maybe you want something like this:
    my $s = eval { PHP::Session->new() }; if ($s) { # I CAN HAZ SESSION } else { # there was an error }
Re^3: 500 internal server error !!
by massa (Hermit) on Aug 20, 2008 at 12:08 UTC
    Is it perl or PHP ??
    []s, HTH, Massa (κς,πμ,πλ)
Re^3: 500 internal server error !!
by massa (Hermit) on Aug 20, 2008 at 14:31 UTC
    Hey, easy with the bangs. Now, what is the "....."? It is the most important part of the error message...
    []s, HTH, Massa (κς,πμ,πλ)