|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Building a Persistent Shopping Cart
Sir,
Thanks for your help, you give me an idea on how to create a shopping cart in php but i have a question regarding the "session". I already download your sample script but when I click the Add item in products.php the error was occured heres the error Warning: open/tmp\sess_d1ca123ab51c55814a3b7ea593e4b955, O_RDWR) failed: m (2) in C:\apache\htdocs\gowith\db.php on line 39 Warning: Cannot add header information - headers already sent by (output started at C:\apache\htdocs\gowith\db.php:39) in C:\apache\htdocs\gowith\db.php on line 40 Warning: open(/tmp\sess_d1ca123ab51c55814a3b7ea593e4b955, O_RDWR) failed: m (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 What will do to fix this problem? Thank you very much.. |
|
#2
|
|||
|
|||
|
the first error has to do with the fact that sessions are not properally set up on your site!
the other ive already answered in your other post |
|
#3
|
|||
|
|||
|
Quote:
I had this problem and it drove me mad for a whole afternoon because none of my friends could understand why it was going wrong. I ended up reading all about sessions on the php.net site and I found the answer from one of the users comments. I'm assuming you have the windows operating system installed and this error is appearing because your running php on your own computer server (because this error wouldn't appear on a payable account server). Locate your php.ini file in your... c:\windows ...directory. Find the line which says... session.save_path = c:\tmp ...and change it to your windows temp folder. My line now looks like this... session.save_path = c:\windows\temp You should find the error I quoted above (which is what your getting) will now no longer appear. The reason this error is appearing is because it's trying to save session data to a folder on your server which doesn't exist. I hope this helps. ![]() |
|
#4
|
|||
|
|||
|
Thank you very much for your help..
|
|
#5
|
|||
|
|||
|
either that or just create a tmp folder on your c:
|
|
#6
|
|||
|
|||
|
Quote:
No problem ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Building a Persistent Shopping Cart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|