Re: Problems with move_uploaded_file()
- From: Sebzzz <sebzzz@xxxxxxxxx>
- Date: Mon, 28 Jul 2008 14:42:49 -0700 (PDT)
I solved the problem.
The site is on an IIS server and I didn't have the proper rights on
the folder to move data to it with php. I fixed this
On Jul 28, 3:33 pm, Sebzzz <seb...@xxxxxxxxx> wrote:
Hi,
I have a form where user can attach a resumé and I want my script to
put it in the cv folder of the server and then send me the link by e-
mail.
However, I tried a lot of combinations with the move_uploaded_file()
but none seem to work.
Here is what it looks like:
move_uploaded_file($_FILES['fichier']['tmp_name'], "cv/" .
$_FILES['fichier']['name']);
But no file in the cv directory, at all. I tried with /cv/, D:\SiteWeb
\Immobiluxe\cv\ (hard path to the directory on the server), I tried
only $_FILES['fichier']['name'] in the hope it would go in the current
directory, still nothing.
I used the getcwd() function to know which directory I'm in and it
tells me "D:\SiteWeb\Immobiluxe"
I also tried /SiteWeb/Immobiluxe/cv
I'm now out of things to try, also the file is in fact uploaded
because a
if (is_uploaded_file($_FILES['fichier']['tmp_name']))
returns true
Really I have no clue
.
- References:
- Problems with move_uploaded_file()
- From: Sebzzz
- Problems with move_uploaded_file()
- Prev by Date: Re: Undefined index: HTTP_HOST
- Next by Date: Should a class directly reference $_SESSION?
- Previous by thread: Problems with move_uploaded_file()
- Next by thread: Should a class directly reference $_SESSION?
- Index(es):
Relevant Pages
|