General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 18th, 2002, 02:11 AM
nik_crash nik_crash is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 6 nik_crash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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..

Reply With Quote
  #2  
Old September 18th, 2002, 04:10 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #3  
Old September 20th, 2002, 11:23 AM
Malignant Malignant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Hastings, UK
Posts: 9 Malignant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
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


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.

Reply With Quote
  #4  
Old September 22nd, 2002, 07:38 PM
nik_crash nik_crash is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 6 nik_crash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you very much for your help..

Reply With Quote
  #5  
Old September 22nd, 2002, 09:33 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
either that or just create a tmp folder on your c:

Reply With Quote
  #6  
Old September 23rd, 2002, 07:04 PM
Malignant Malignant is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Hastings, UK
Posts: 9 Malignant User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Thank you very much for your help..


No problem

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Building a Persistent Shopping Cart


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT