RE : [PHP-INSTALL] FW: failed to open stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



hi

your path of file is not a path WINDOWS
change your path of mouse.txt file for : C:\Inetpub\wwwroot\var\www\hidden\mouse.txt

or if the path : /var/www/hidden is define in your php.ini the variable : tmp_upload_file
change this variable for a windows path

under you find any variable define in php.ini  :

 file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not

; on unix is :
upload_tmp_dir = /var/www/gamadev.org/tmp
;on windows is :
upload_tmp_dir = C:\Inetpub\wwwroot\tmp
; Maximum allowed size for uploaded files.
upload_max_filesize = 15M

best regard

alexandre
-----------------------
@gamadev.org@
-----------------------

"Raney, Steve A." <saraney@xxxxxxxx> a écrit :
 
Can somebody tell me what this means, and what to do about it? I am trying to upload a file, in this case the file name is mouse.txt:
 
PHP Warning: move_uploaded_file(/var/www/hidden/mouse.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\Dev\uploadfile_action.php on line 12
 
Stephen Raney


From: jazzoo4 [mailto:jazzoo4@xxxxxxxxx]
Sent: Thursday, October 04, 2007 10:01 AM
To: Raney, Steve A.
Subject: my opinion

Check ur php.ini. find the session path and add ur folder where you save the sessions. check also the permissions u have on this folder. i think is that.
----- Original Message -----
From: Raney, Steve A.
To: php-install@xxxxxxxxxxxxx
Sent: Thursday, October 04, 2007 4:55 PM
Subject: Permission denied (13) error?

Can anyone help me with this? I am running a login.php page, and I can connect, write and retrieve data from the MySQL5 database. I am having trouble with the session variable for some reason, getting the following junk after my page runs:
PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session\sess_bvmdr492mgemeklnolibfdir26, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\Login.php on line 9 PHP Warning: Unknown: open(C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session\sess_bvmdr492mgemeklnolibfdir26, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session) in Unknown on line 0
 
Stephen Raney
 


Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux