macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 10:38:27 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Uploading files in php  (Read 969 times)
0 Members and 1 Guest are viewing this topic.
nsn
Newbie
*
Offline Offline

Posts: 46


View Profile
« on: November 08, 2006, 17:48:55 PM »

I like to use a script for uploading files using the post method.
Somehow the temp file is placed in /tmp iso /opt/tmp.

See log:
2006-11-08 15:58:04: (connections.c.1065) denying upload as opening to temp-file for upload failed: /var/tmp/lighttpd-upload-dQgPnt No such file or directory
2006-11-08 16:00:02: (connections.c.1065) denying upload as opening to temp-file for upload failed: /var/tmp/lighttpd-upload-mUq6ZD No such file or directory
2006-11-08 16:07:19: (connections.c.1065) denying upload as opening to temp-file for upload failed: /var/tmp/lighttpd-upload-wjBgWQ No such file or directory

I can only upload relative small files. The temp files should go to /opt/tmp.

Some of the settings in php.ini:

post_max_size = 8M
file_uploads = On
upload_tmp_dir = "/opt/www"
upload_max_filesize = 8M
max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60   ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)


Who can help ?

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.285 seconds with 24 queries.