Please verify that the current setting ( in php.ini ) of session.save_path
is correct (/tmp):

You must have a folder as indicated in php.ini.

Tros

"Elaine Kwek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am now trying to use php session control in my web application. i try to
> copy a coding an test it...but it come out error. i not sure how to solve
> it. Plz help me...I using Apache server.
>
> the code sample is like this:
>
> <?
>
>   session_start();
>   session_register("sess_var");
>
>   $sess_var = "Hello world!";
>
>   echo "The content of \$sess_var is $sess_var<br>";
>
> ?>
>
>
> And this is the result of the page:
>
> Warning: open(/tmp\sess_c0fe7c6a4524488a979e20d90b2eebb2, O_RDWR) failed:
No
> such file or directory (2) in c:\Program Files\Apache
> Group\Apache\htdocs\Office_Management_System\tmp\page1.php on line 3
>
> The content of $sess_var is Hello world!
>
> Warning: open(/tmp\sess_c0fe7c6a4524488a979e20d90b2eebb2, O_RDWR) failed:
No
> such file or directory (2) in Unknown on line 0
>
> Warning: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct (/tmp) in Unknown on line
0
>
>
> thanx to whom reply to me...
>
> Elaine Kwek
>



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

Reply via email to