Error and need help????

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • racin_vegas

    Error and need help????

    I am learning how to program with PHP however in the middle of a tutorial I am receiving the following error messages:

    Warning: session_start() : open(:\tmp\sess _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid argument (22) in W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php on line 3

    Warning: session_start() : Cannot send session cookie - headers already sent by (output started at W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php:3) in W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php on line 3

    Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php:3) in W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php on line 3

    Warning: Unknown(): open(:\tmp\sess _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid argument (22) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_pa th is correct (:\tmp) in Unknown on line 0

    I have turned my register_global s to OFF, and no matter what I try it keeps giving me this error??? Can somone please help me out here??




    --
    "There are no such thing as problems, only opportunities to learn something new!"



  • Ken Robinson

    #2
    Re: Error and need help????


    racin_vegas wrote:[color=blue]
    > I am learning how to program with PHP however in the middle of a tutorial I am receiving the following error messages:
    >
    > Warning: session_start() : open(:\tmp\sess _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid argument (22) in W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php on line 3
    >[/color]

    The only meaningful error is the above. All the rest are cause by that
    one. This error seems to indicate that the directory that has been
    defined in your php.ini file either does not exist or is not writable.
    Check to make sure that the line in your php.ini file that reads
    something like

    session.save_pa th = d:\tmp

    actually points to a real and writable directory.

    [color=blue]
    >
    > I have turned my register_global s to OFF, and no matter what I try it keeps giving me this error??? Can somone please help me out here??
    >[/color]

    That has nothing to do with this error.


    Ken

    Comment

    • racin_vegas

      #3
      Re: Error and need help????

      I did see in the config area that the folder is not "writeable" how can I
      change it?? It does not give me an option and I am very new to the "local"
      server setup thing

      --
      "There are no such thing as problems, only opportunities to learn something
      new!"

      Thomas "Tom" Bladecki
      UOP Online Student
      University of Phoenix Online
      tbladecki@email .uophx.edu


      "Ken Robinson" <kenrbnsn@rbnsn .com> wrote in message
      news:1125290278 .735255.232510@ g14g2000cwa.goo glegroups.com.. .[color=blue]
      >
      > racin_vegas wrote:[color=green]
      >> I am learning how to program with PHP however in the middle of a tutorial
      >> I am receiving the following error messages:
      >>
      >> Warning: session_start() :
      >> open(:\tmp\sess _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid
      >> argument (22) in W:\www\developm ent\Projects\Le arning Files\Book
      >> Project\movie1. php on line 3
      >>[/color]
      >
      > The only meaningful error is the above. All the rest are cause by that
      > one. This error seems to indicate that the directory that has been
      > defined in your php.ini file either does not exist or is not writable.
      > Check to make sure that the line in your php.ini file that reads
      > something like
      >
      > session.save_pa th = d:\tmp
      >
      > actually points to a real and writable directory.
      >
      >[color=green]
      >>
      >> I have turned my register_global s to OFF, and no matter what I try it
      >> keeps giving me this error??? Can somone please help me out here??
      >>[/color]
      >
      > That has nothing to do with this error.
      >
      >
      > Ken
      >[/color]


      Comment

      • racin_vegas

        #4
        Re: Error and need help????

        I know that I can change the "read-only" check box on the properties of the
        tmp folder but when I do it changes back to "read-only" after I close the
        window.....coul d it have something to do with the fact the program uses a
        "virtual" drive??

        --
        "There are no such thing as problems, only opportunities to learn something
        new!"



        "Ken Robinson" <kenrbnsn@rbnsn .com> wrote in message
        news:1125290278 .735255.232510@ g14g2000cwa.goo glegroups.com.. .[color=blue]
        >
        > racin_vegas wrote:[color=green]
        >> I am learning how to program with PHP however in the middle of a tutorial
        >> I am receiving the following error messages:
        >>
        >> Warning: session_start() :
        >> open(:\tmp\sess _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid
        >> argument (22) in W:\www\developm ent\Projects\Le arning Files\Book
        >> Project\movie1. php on line 3
        >>[/color]
        >
        > The only meaningful error is the above. All the rest are cause by that
        > one. This error seems to indicate that the directory that has been
        > defined in your php.ini file either does not exist or is not writable.
        > Check to make sure that the line in your php.ini file that reads
        > something like
        >
        > session.save_pa th = d:\tmp
        >
        > actually points to a real and writable directory.
        >
        >[color=green]
        >>
        >> I have turned my register_global s to OFF, and no matter what I try it
        >> keeps giving me this error??? Can somone please help me out here??
        >>[/color]
        >
        > That has nothing to do with this error.
        >
        >
        > Ken
        >[/color]


        Comment

        • Erwin Moller

          #5
          Re: Error and need help????

          racin_vegas wrote:
          [color=blue]
          > I know that I can change the "read-only" check box on the properties of
          > the tmp folder but when I do it changes back to "read-only" after I close
          > the window.....coul d it have something to do with the fact the program
          > uses a "virtual" drive??
          >[/color]

          Hi,

          Under *nix you need to make the folder writable for the user that runs PHP.
          In most cases this is an user named 'apache' or 'nobody' or 'www-data'.

          Next step is to make the directory where PHP stores the sessionfiles
          WRITABLE (and readable) to that user.

          You can do this is a few different ways:
          - make the folder open for everybody
          (This is ok during development, or when just learning)
          chmod 777 path/to/your/folder
          This is probably a bad idea if you start using the site for real.

          - make the folder WRITABLE to the abovementioned user (apache, nobody,
          www-data) by modifying the read/writepermission allright for the group (the
          abovementioned user is in) or the user.

          The same logic goes roughly for W$.

          So brush up your permissionknowl edge.
          Google for it. :-)

          Regards,
          Erwin Moller

          Comment

          Working...