help with PHP upload needed
| From: | Unknown Sender | Date: | Sun, 08 Jun 2003 07:25:36 +0000 |
| Subject: | help with PHP upload needed | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18596@lists.php.net to get a copy of this message | ||
Hi,
sorry to disturb you, any way, I've got a problem, I was making file upload through php release
4.3.2 under windows with
apache 1.3(what ever) (php is a module not a php.exe). So the problem is that files are not uploaded
to the directory (dir) I want after single call to
'move_uploaded_file'. Php and Apache say, that everything is ok, file uploaded, but it is
not in the temporary upload dir,
nor in dir I want them to be. the second call to this function make everything the right way. I am
not sure, but I think I already
have such problem also with 'mkdir()' and file creation and delete. So I get bored - is
this a windows problem or something else?
So the code with 'move_uploaded_file'
if(!move_uploaded_file($tmpName, $newDir.$newName))
error();
Maybe you can tell me a resorce, where I can find an answer.
sincerely yours,
LorieCat.