GithubHelp home page GithubHelp logo

Comments (14)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
This is not enough for a bug report, I have no idea of what you're
trying to say.

Original comment by [email protected] on 5 Mar 2013 at 6:57

  • Changed state: Invalid

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
When using Windows 8, I get this problem as well. It seems that the session 
files gets written to c:\Windows - but phpdesktop doesn't have the right 
permissions. This is the error I get when running phpLiteAdmin:

Warning: session_start(): open(C:\Windows\sess_*******, O_RDWR) failed: 
Permission denied (13) ...

Original comment by [email protected] on 18 Jun 2013 at 9:19

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
What is the tmp directory showed in phpinfo()?

Have you tried setting the session save path?

    ini_set('session.save_path', 'C:/Windows/temp');

Try "C:/Windows/temp" or some other directory that your application 
has permission to write to.

Anyone having problems with writing session files will probably also
have problem uploading files, if so try setting the "upload_tmp_dir" 
option using ini_set() similarly to the "session.save_path" option.

Original comment by [email protected] on 18 Jun 2013 at 9:44

  • Changed title: Permission denied to write session file (or upload a file)
  • Changed state: Accepted

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
[deleted comment]

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
Since PHP 5.5.0 there is an another php.ini option besides the
"session.save_path" and "upload_tmp_dir" that might interest us,
it's named "sys_temp_dir", but this one can be set only through
php.ini, it cannot be changed with ini_set().

Original comment by [email protected] on 18 Jun 2013 at 9:52

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
In phpinfo() the save_path is set to "no value".

Can we set values in php.ini itself? Because doing ini_set for several 
third-party scripts would be a pain.

Original comment by [email protected] on 19 Jun 2013 at 7:33

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
Adding this to php.ini seems to help indeed:

session.save_path = C:/Windows/temp

Original comment by [email protected] on 19 Jun 2013 at 7:35

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
Yes, these are php.ini options, you can set them by editing the php.ini
file or set it dynamically via ini_set(), the advantage of the second
method is that you can check if the "C:/Windows/temp" really exists, as
user may be running Windows from another partition for exmaple D:/ and
hardcoding the path might fail in this case. There is an 
"auto_prepend_file" directive that you could use with third-party 
scripts to set the temp directory dynamically using ini_set():

http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file

Original comment by [email protected] on 19 Jun 2013 at 7:42

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
TODO: Create an example in the www/ directory for using sessions and
uploading files, it should handle cases when the TMP/TEMP environment
variable is not set in Windows, thus the "session.save_path" or the
"upload_tmp_dir" options are empty in phpinfo().

Original comment by [email protected] on 19 Jun 2013 at 7:47

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024

Original comment by [email protected] on 4 Jul 2013 at 5:58

  • Changed title: Invalid temp directory on Windows 8 - permission denied to write a session file or to upload a file

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
A php example script will be added to the php desktop binaries with an
exaplanation that PHP temp environment variables should be set on this OS.

Original comment by [email protected] on 21 Jul 2013 at 6:38

  • Added labels: NextRelease

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024

Original comment by [email protected] on 19 Jan 2014 at 11:40

  • Changed state: Duplicate

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
I have investigated the issue again and the problem was that the TMP 
environment variable was not set by the Mongoose webserver. Fixed in revision 
89f4820f0bf1. Added the upload and session examples.

Original comment by [email protected] on 22 Jan 2014 at 4:07

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 27, 2024
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/23

Original comment by [email protected] on 24 Aug 2015 at 3:17

from phpdesktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.