SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    session_start() error!

    Hi, i got this error when I ran session_start through my browser

    Warning: open(/tmp\sess_5405b494ba52268e9c29d9a6a798e5f7, O_RDWR) failed: m (2) in c:\phpdev\www\validate.php on line 9

    How do I fix this!?

    Thanks,
    Jim
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to set the session.save_path in your php.ini

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    session.save_path = C:\phpdev\www\temp;

    it was already set to that when it didn't work.... (i'm using phpdev btw)

    How else am i supposed to set it!?

    thanks
    Jim
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles

  4. #4
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Save the following and run it:

    PHP Code:
    <?php

        phpinfo
    ();

    ?>
    Look for the setting Configuration File (php.ini) Path, this will tell you where PHP is expecting you ini file to be. You will need to copy it here

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  5. #5
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its in the right spot, i still get

    Warning: open(/tmp\sess_5405b494ba52268e9c29d9a6a798e5f7, O_RDWR) failed: m (2) in c:\phpdev\www\validate.php on line 9

    whats it trying to do with /tmp ? i don't get that....hrmmmm
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles

  6. #6
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also, do I have to use mySQL? That could be the problem..... but I was hoping I wouldn't have to.

    Jim
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles

  7. #7
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /tmp\ses_#### is where it's trying to save the session.
    Are you sure the session path is correct?

    And no, you don't have to use mysql.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  8. #8
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i used this function with it too now:
    session_save_path("temp");

    and it gave me this error:

    Warning: open(temp\sess_5405b494ba52268e9c29d9a6a798e5f7, O_RDWR) failed: m (2) in c:\phpdev\www\validate.php on line 10

    what does the m(2) mean?

    any other ideas?

    Jim
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles

  9. #9
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by seanf
    You need to set the session.save_path in your php.ini

    Sean
    or in your .htaccess file (only if you are usign PHP as an aPache Module).

    By the way, write your path like this

    session.save_path = C:/phpdev/www/temp

    Paul

  10. #10
    SitePoint Zealot freejavahelp's Avatar
    Join Date
    Jul 2000
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey guys!

    i put in on my server for freejavahelp, and it worked.

    Thanks

    Any suggested articles on sessions other than the ones on this site?

    Jim
    http://www.freejavahelp.com
    Making Java REALLY Easy
    Tutorials, Forums, and Articles


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •