Problems with move_uploaded_file()

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a form where user can attach a resum=E9 and I want my script to
put it in the cv folder of the server and then send me the link by e-

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/" .

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

Re: Problems with move_uploaded_file()

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

Quoted text here. Click to load it

Site Timeline