RE: [PHP] Plz help to solve my problem.
| From: | Martin Towell | Date: | Tue, 17 Dec 2002 05:11:11 +0000 |
| Subject: | RE: [PHP] Plz help to solve my problem. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128512@lists.php.net to get a copy of this message | ||
From this error
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
It looks like you'll have to change php.ini to have session.save_path point
to a valid path. Maybe \temp\ ?
HTH
Martin
-----Original Message-----
From: Elaine Kwek [mailto:shkwek@imagnia.com.my]
Sent: Tuesday, December 17, 2002 4:08 PM
To: PHP
Subject: [PHP] Plz help to solve my problem.
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