|
Posted by Sebzzz on July 28, 2008, 5:42 pm
Please log in for more thread options
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
> Hi,
>
> 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-
> 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
|