Comments (14)
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.
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.
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.
[deleted comment]
from phpdesktop.
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.
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.
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.
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.
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.
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.
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.
Original comment by [email protected]
on 19 Jan 2014 at 11:40
- Changed state: Duplicate
from phpdesktop.
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.
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)
- Update HOT 4
- Bootstrap 5 off canvas, modals, burgur menu dropdowns is not working in php-desktop for windows. HOT 5
- Any version without chrome HOT 5
- Algum procedimento recomendado para a lib funcionar na versão 7.4 do php?
- Most links on Build/Windows are dead? HOT 2
- slowness HOT 1
- How to upgrade the CEF version? HOT 2
- Unable to play local video HOT 3
- Bootstrap js and Nav Js not work HOT 2
- Compilation : 'OVERRIDE' : unknown substitution specifier HOT 1
- Uncaught (in promise) ReferenceError: AbortController is not defined
- Codeigniter 4 sqlite3 connection problem HOT 3
- Code protection suggestion HOT 7
- Is PHP Desktop compatible with Laravel latest ( versrion 10.x now )?
- Default Window Size But
- how to update the chromium version HOT 6
- how to build this project HOT 3
- Why does php desktop run slow when the machine is connected to internet???
- mp4 format video not working in php desktop HOT 2
- Browser Not Supported HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdesktop.