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

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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old September 26th, 2002, 07:36 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Making Sense Of PHP Errors

Making Sense Of PHP Errors Have you had bad experiences with PHP errors that made you scratch your head? Share your experiences with fellow devArticler's in this forum thread.

You can read the article here .

Reply With Quote
  #2  
Old October 1st, 2002, 07:59 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.

The reason this error appears is because it's trying to save session data to a folder on a server which doesn't exist. You can either create the folder which it's trying to find (c:\tmp) or use the method below:


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


I hope this helps fellow php beginners as I had to look high and low for the solution as it doesn't seem to be documented anywhere else.

Reply With Quote
  #3  
Old January 30th, 2003, 07:04 AM
Snowfruit Snowfruit is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Ireland
Posts: 11 Snowfruit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Illegal offset type

Illegal offset type

What causes this error?

$result = array(array(""));
while ($row = mysql_fetch_row($res)) {
$x = end($result);
for($i=0;$i<count($row);$i++) $result[$x][$i] = $row[$i];
}

This is the offending code

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Making Sense Of PHP Errors


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 3 hosted by Hostway