Toggle navigation
Koozali.org: home of the SME Server
Community
Forums
Bugs
Lists
Forum Help
Download
SME Server ISOs
Contribs
Documentation
Manual
Wiki
FAQ
HowTo
Donate
Search
Login
Register
Login
Register
×
Close
Login
Remember me
Koozali.org: home of the SME Server
Legacy Forums
General Discussion (Legacy)
Topic:
File Upload directory
« previous
next »
+
Print
Pages: [
1
]
Go Down
File Upload directory
2 Replies
359 Views
Mark Murden
File Upload directory
«
on:
December 18, 2002, 02:51:04 PM »
Can anyone help me with altering the temporary file upload directory on a SME 5.1 server.
I am uploading files from an HTML form:
(File:
and the $file variable takes becomes something like this:
/tmp/php9NVELE
I can copy and use these files as require after modifying the open_basedir restrictions to /.
As you can understand I would rather leave the open_basedir restrictions in place on a higher level directory (say /home/e-smith/files/ibays/) and get the temporary uploaded files here before copying.
I have looked into solutions modifying php.ini with no effect (as expected) but cannot find any e-smith templates or the like relating to the upload directory.
Any help would be much appreciated
Thanks
Logged
Nathan Fowler
Re: File Upload directory
«
Reply #1 on:
December 18, 2002, 10:40:15 PM »
Why not take advantage of the move_uploaded_file() command, available in PHP?
See
http://www.php.net
for more information on handling the upload of files. For security reasons, I also recommend using is_uploaded_file()
Logged
Nathan Fowler
Re: File Upload directory
«
Reply #2 on:
December 18, 2002, 10:40:15 PM »
Why not take advantage of the move_uploaded_file() command, available in PHP?
See
http://www.php.net
for more information on handling the upload of files. For security reasons, I also recommend using is_uploaded_file()
Logged
+
Print
Pages: [
1
]
Go Up
« previous
next »
Koozali.org: home of the SME Server
Legacy Forums
General Discussion (Legacy)
Topic:
File Upload directory