Re: Can anyone help me with this problem(uploads via a form)?
| From: | heinisch at creaction dot de | Date: | Wed, 20 Mar 2002 07:05:38 +0000 |
| Subject: | Re: Can anyone help me with this problem(uploads via a form)? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89287@lists.php.net to get a copy of this message | ||
At 19.03.2002 14:16, you wrote:
I'm having a problem with file uploads via a HTML form. I've no luck getting it to work. After a bit of research I think I've determined that the problem lies with my host having safe mode enabled and setting a open_basedir that is outside my scope.
<snip> Hi Jack,It´s important to know that the file will be stored in /tmp ! I have realized it with two pages page a is a form where the client can enter the necessary data, like targetname the page contains the following form tag <form enctype="multipart/form-data" action="save_file.html" method="post"> While uploading, the file will be stored in /tmp/, Page b (save_file.html) renames it to @rename ($userfile,delete_me); $userfile is the filename, the user entered. Now you have to move the file from /tmp/ to your desired directory $scom="mv "./tmp/delete_me." where_to_move_to"; $ret=system($scom); HTH Oliver